fix: build conformed with corrected app store detector

This commit is contained in:
Michael Freno
2026-01-10 20:42:21 -05:00
parent 3f9bb250f4
commit 96398bdbbf
22 changed files with 156 additions and 44 deletions

View File

@@ -10,20 +10,20 @@ import Testing
struct AppStoreDetectorTests {
@Test func isAppStoreVersionReturnsFalseInDebug() {
@Test func isAppStoreVersionReturnsFalseInDebug() async {
// In test/debug builds, should always return false
#expect(AppStoreDetector.isAppStoreVersion == false)
#expect(await AppStoreDetector.isAppStoreVersion() == false)
}
@Test func isTestFlightReturnsFalseInDebug() {
@Test func isTestFlightReturnsFalseInDebug() async {
// In test/debug builds, should always return false
#expect(AppStoreDetector.isTestFlight == false)
#expect(await AppStoreDetector.isTestFlight() == false)
}
@Test func receiptValidationHandlesMissingReceipt() {
@Test func receiptValidationHandlesMissingReceipt() async {
// When there's no receipt (development build), should return false
// This is implicitly tested by isAppStoreVersionReturnsFalseInDebug
// but we're documenting the expected behavior
#expect(AppStoreDetector.isAppStoreVersion == false)
#expect(await AppStoreDetector.isAppStoreVersion() == false)
}
}