Skip to content

Commit

Permalink
tries to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Nov 29, 2024
1 parent af5eb5d commit 92f42b6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ class PurchasedProductsFetcherTests: BasePurchasedProductsFetcherTests {
expect(product.productIdentifier) == transaction.productID

expect(subscription.periodType) == .trial
expect(subscription.purchaseDate).to(beCloseToNow())
expect(subscription.originalPurchaseDate).to(beCloseToNow())
expect(subscription.expiresDate).to(beCloseToDate(expiration))
expect(subscription.purchaseDate) == transaction.purchaseDate
expect(subscription.originalPurchaseDate) == transaction.originalPurchaseDate
expect(subscription.expiresDate) == transaction.expirationDate
expect(subscription.store) == .appStore
expect(subscription.isSandbox) == self.sandboxDetector.isSandbox
expect(subscription.ownershipType) == .purchased

expect(entitlement.expiresDate).to(beCloseToDate(expiration))
expect(entitlement.expiresDate) == transaction.expirationDate
expect(entitlement.productIdentifier) == transaction.productID
expect(entitlement.purchaseDate).to(beCloseToNow())
expect(entitlement.purchaseDate) == transaction.purchaseDate
}

func testTwoPurchasedProduct() async throws {
Expand Down

0 comments on commit 92f42b6

Please sign in to comment.