From 3ed2bb4da64d7cc9b67ef86a3892ab41b14fcc51 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 22 Mar 2026 20:40:53 -0500 Subject: feat: surface an alert when a deep link fails to resolve --- HutchTests/AppStateTests.swift | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 HutchTests/AppStateTests.swift (limited to 'HutchTests/AppStateTests.swift') 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.") + } +} -- cgit v1.2.3