summaryrefslogtreecommitdiff
path: root/Hutch/HutchTests/AppStateTests.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-22 20:40:50 -0500
committerChristian Cleberg <[email protected]>2026-03-22 20:40:50 -0500
commit866f9517dba3c878197b0290dd8b4d1becb153c3 (patch)
tree94c9bbb873a628b6df7dd92e6071d2987d50bb28 /Hutch/HutchTests/AppStateTests.swift
parente60ff51620affd831202f06f710fcef6e1e92634 (diff)
downloadhutch-866f9517dba3c878197b0290dd8b4d1becb153c3.tar.gz
hutch-866f9517dba3c878197b0290dd8b4d1becb153c3.tar.bz2
hutch-866f9517dba3c878197b0290dd8b4d1becb153c3.zip
feat: add privacy policy link and global swipe actions toggle to Settings
Diffstat (limited to 'Hutch/HutchTests/AppStateTests.swift')
-rw-r--r--Hutch/HutchTests/AppStateTests.swift25
1 files changed, 25 insertions, 0 deletions
diff --git a/Hutch/HutchTests/AppStateTests.swift b/Hutch/HutchTests/AppStateTests.swift
new file mode 100644
index 0000000..ca34df2
--- /dev/null
+++ b/Hutch/HutchTests/AppStateTests.swift
@@ -0,0 +1,25 @@
+import Testing
+@testable import Hutch
+
+struct AppStateTests {
+
+ @Test
+ @MainActor
+ func presentRepositoryDeepLinkErrorSetsUserFacingMessage() {
+ let appState = AppState()
+
+ appState.presentRepositoryDeepLinkError()
+
+ #expect(appState.deepLinkError == "The repository could not be found or is inaccessible.")
+ }
+
+ @Test
+ @MainActor
+ func presentTicketDeepLinkErrorSetsUserFacingMessage() {
+ let appState = AppState()
+
+ appState.presentTicketDeepLinkError()
+
+ #expect(appState.deepLinkError == "The ticket could not be found or is inaccessible.")
+ }
+}