aboutsummaryrefslogtreecommitdiff
path: root/HutchTests/TipStoreViewModelTests.swift
blob: ed58d1e77bc50ede4406e77d8999573a0f462945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Foundation
import Testing
@testable import Hutch

struct TipStoreViewModelTests {

    @Test
    func tipProductIdentifiersMatchAppStoreConnectOrder() {
        #expect(TipStoreViewModel.productIDs == [
            "net.cleberg.hutch.tip.small",
            "net.cleberg.hutch.tip.medium",
            "net.cleberg.hutch.tip.large",
        ])
    }

    @Test
    func tipProductDisplayNamesMatchReviewMetadata() {
        #expect(TipStoreViewModel.TipProduct.small.displayName == "Small Tip")
        #expect(TipStoreViewModel.TipProduct.medium.displayName == "Medium Tip")
        #expect(TipStoreViewModel.TipProduct.large.displayName == "Large Tip")
    }
}