mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-10 22:45:55 +05:45
- Fixes [TRIAGE-221] for `SK1`. - Filed `FB11889732` for `SK2`. ### Changes: - Added 2 `IntroEligibilityCalculatorTests` unit tests to cover this scenario - Added 1 `IntroEligibilityCalculatorTests` unit tests to cover the equivalent of the `testIneligibleForIntroAfterPurchaseExpires` integration test - Added 2 `StoreKitIntegrationTests` to cover this scenario (one of them disabled in SK2) - Updated `IntroEligibilityCalculator` logic to fix the new tests. - Refactored `IntroEligibilityCalculatorTests` to avoid duplication and allow adding new cases more easily. - Added a few more tests to ensure other cases are correct. [TRIAGE-221]: https://revenuecats.atlassian.net/browse/TRIAGE-221?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ