Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseHsu committed Aug 29, 2024
1 parent 6b3cb7d commit 4bee70f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class StoreKit2TranslatorTests: XCTestCase {
XCTFail("SubscriptionInfo should not be nil")
return
}
let pigeonMessage = subscription.convertToPigeon()
let pigeonMessage = subscription.convertToPigeon
XCTAssertEqual(pigeonMessage, productMessage.subscription)
}

func testPigeonConversionForProductType() async throws {
let type = product.type
let pigeonMessage = type.convertToPigeon()
let pigeonMessage = type.convertToPigeon
XCTAssertEqual(pigeonMessage, productMessage.type)
}

Expand All @@ -70,13 +70,13 @@ class StoreKit2TranslatorTests: XCTestCase {
XCTFail("SubscriptionPeriod should not be nil")
return
}
let pigeonMessage = period.convertToPigeon()
let pigeonMessage = period.convertToPigeon
XCTAssertEqual(pigeonMessage, productMessage.subscription?.subscriptionPeriod)
}

func testPigeonConversionForPriceLocale() async throws {
let locale = product.priceFormatStyle.locale
let pigeonMessage = locale.convertToPigeon()
let pigeonMessage = locale.convertToPigeon
XCTAssertEqual(pigeonMessage, productMessage.priceLocale)
}
}

0 comments on commit 4bee70f

Please sign in to comment.