fix: correct link highlighting, update app store validation

This commit is contained in:
Michael Freno
2026-01-10 10:31:09 -05:00
parent 4aa1d29c65
commit ef925391da
3 changed files with 54 additions and 16 deletions

View File

@@ -9,9 +9,21 @@
import Testing
struct AppStoreDetectorTests {
@Test func isAppStoreVersionReturnsFalseInDebug() {
// In test/debug builds, should always return false
#expect(AppStoreDetector.isAppStoreVersion == false)
}
@Test func isTestFlightReturnsFalseInDebug() {
// In test/debug builds, should always return false
#expect(AppStoreDetector.isTestFlight == false)
}
@Test func receiptValidationHandlesMissingReceipt() {
// 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)
}
}