Tests/OrgAppTests/TipTests.swift

d8907828b90029789c777b566de52ad9944d04cb
orgstar/Tests/OrgAppTests/TipTests.swift

17 lines · 487 bytes

 1import Testing
 2@testable import OrgApp
 3
 4struct TipTests {
 5    @Test func productIDsMatchAppStoreConnectInOrder() {
 6        #expect(Tip.productIDs == [
 7            "sh.krz.orgstar.tip.small",
 8            "sh.krz.orgstar.tip.medium",
 9            "sh.krz.orgstar.tip.large",
10        ])
11    }
12
13    @Test func productIDsAreNotOrgstarPlus() {
14        // Tips must never count as an orgstar+ purchase.
15        #expect(Tip.productIDs.allSatisfy { !$0.hasPrefix("sh.krz.orgstar.pro.") })
16    }
17}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form