summaryrefslogtreecommitdiff
path: root/HutchTests/AppStateTests.swift
diff options
context:
space:
mode:
Diffstat (limited to 'HutchTests/AppStateTests.swift')
-rw-r--r--HutchTests/AppStateTests.swift25
1 files changed, 25 insertions, 0 deletions
diff --git a/HutchTests/AppStateTests.swift b/HutchTests/AppStateTests.swift
new file mode 100644
index 0000000..ca34df2
--- /dev/null
+++ b/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.")
+ }
+}