Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vradopp committed Feb 28, 2024
1 parent 1e369eb commit 7b5bcaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion UnitTests/PaymentsCoreTests/AnalyticsEventData_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class AnalyticsEventData_Tests: XCTestCase {
eventName: "fake-name",
clientID: "fake-client-id",
orderID: "fake-order",
correlationID: "fake-correlation-id"
correlationID: "fake-correlation-id",
setupToken: "fake-setup-token"
)
}

Expand Down Expand Up @@ -48,6 +49,7 @@ class AnalyticsEventData_Tests: XCTestCase {
XCTAssertGreaterThanOrEqual(eventParams["t"] as! String, currentTime)
XCTAssertLessThanOrEqual(eventParams["t"] as! String, oneSecondLater)
XCTAssertEqual(eventParams["tenant_name"] as? String, "PayPal")
XCTAssertEqual(eventParams["vault_setup_token"] as? String, "fake-setup-token")
}
}

Expand Down
6 changes: 4 additions & 2 deletions UnitTests/PaymentsCoreTests/TrackingEventsAPI_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class TrackingEventsAPI_Tests: XCTestCase {
eventName: "my-event-name",
clientID: "my-id",
orderID: "my-order",
correlationID: nil
correlationID: nil,
setupToken: nil
)

// MARK: - Test Lifecycle
Expand All @@ -43,7 +44,8 @@ class TrackingEventsAPI_Tests: XCTestCase {
eventName: "my-event-name",
clientID: "my-id",
orderID: "my-order",
correlationID: "fake-correlation-id"
correlationID: "fake-correlation-id",
setupToken: "fake-setup-token"
)
_ = try await sut.sendEvent(with: fakeAnalyticsEventData)

Expand Down

0 comments on commit 7b5bcaa

Please sign in to comment.