@@ -5,15 +5,15 @@ import XCTest
55class CardPresentConfigurationTests : XCTestCase {
66 // MARK: - US Tests
77 func test_configuration_for_US_with_Canada_enabled( ) throws {
8- let configuration = try CardPresentPaymentsConfiguration ( country: " US " , canadaEnabled: true )
8+ let configuration = CardPresentPaymentsConfiguration ( country: " US " , canadaEnabled: true )
99 XCTAssertTrue ( configuration. isSupportedCountry)
1010 XCTAssertEqual ( configuration. currencies, [ Constants . Currency. usd] )
1111 XCTAssertEqual ( configuration. paymentGateways, [ Constants . PaymentGateway. wcpay, Constants . PaymentGateway. stripe] )
1212 XCTAssertEqual ( configuration. paymentMethods, [ . cardPresent] )
1313 }
1414
1515 func test_configuration_for_US_with_Canada_disabled( ) throws {
16- let configuration = try CardPresentPaymentsConfiguration ( country: " US " , canadaEnabled: false )
16+ let configuration = CardPresentPaymentsConfiguration ( country: " US " , canadaEnabled: false )
1717 XCTAssertTrue ( configuration. isSupportedCountry)
1818 XCTAssertEqual ( configuration. currencies, [ Constants . Currency. usd] )
1919 XCTAssertEqual ( configuration. paymentGateways, [ Constants . PaymentGateway. wcpay, Constants . PaymentGateway. stripe] )
@@ -22,15 +22,15 @@ class CardPresentConfigurationTests: XCTestCase {
2222
2323 // MARK: - Canada Tests
2424 func test_configuration_for_Canada_with_Canada_enabled( ) throws {
25- let configuration = try CardPresentPaymentsConfiguration ( country: " CA " , canadaEnabled: true )
25+ let configuration = CardPresentPaymentsConfiguration ( country: " CA " , canadaEnabled: true )
2626 XCTAssertTrue ( configuration. isSupportedCountry)
27- XCTAssertEqual ( configuration. currencies, [ Constants . Currency. usd ] )
27+ XCTAssertEqual ( configuration. currencies, [ Constants . Currency. cad ] )
2828 XCTAssertEqual ( configuration. paymentGateways, [ Constants . PaymentGateway. wcpay] )
29- XCTAssertEqual ( configuration. paymentMethods, [ . cardPresent] )
29+ XCTAssertEqual ( configuration. paymentMethods, [ . cardPresent, . interacPresent ] )
3030 }
3131
3232 func test_configuration_for_Canada_with_Canada_disabled( ) {
33- XCTAssertThrowsError ( try CardPresentPaymentsConfiguration ( country: " CA " , canadaEnabled: false ) )
33+ let configuration = CardPresentPaymentsConfiguration ( country: " CA " , canadaEnabled: false )
3434 XCTAssertFalse ( configuration. isSupportedCountry)
3535 }
3636
0 commit comments