Repository navigation
test(minesweeper): assert controller reads MS product display price (#262) - #271
Merged
Merged
Conversation
…262) Harden monetizationControllerUsesMSProductId: the prior sentinel only checked the "$2.99" empty-catalog fallback (identical for Sudoku/MS). This seeds the preview FakeIAPClient with a minesweeperRemoveAdsProductId product priced "$4.99", bootstraps, and asserts removeAdsDisplayPrice surfaces it — proving the controller threads the MS productId, not Sudoku's. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #262.
monetizationControllerUsesMSProductIdonly asserted the"$2.99"empty-catalog fallback — identical for Sudoku and MS, so it never proved the productId actually threads through.New
monetizationControllerReadsMSProductDisplayPriceseeds the previewFakeIAPClientwith aminesweeperRemoveAdsProductIdproduct priced"$4.99", bootstraps, and assertsremoveAdsDisplayPrice == "$4.99". Negative control: had the composition wired Sudoku'sremoveAdsProductId, thefirst(where: { $0.id == productId })lookup would miss and fall back to"$2.99", failing the assertion.Verified:
swift test --filter MinesweeperAppCompositionTests→ 7 tests pass.🤖 Generated with Claude Code