add a test for a non-existent deep link

This commit is contained in:
2025-03-16 17:39:10 -06:00
parent 2337dc64e0
commit 88d5b432b8

View File

@@ -178,6 +178,18 @@ const runDeeplinkTests = async (log) => {
await executeDeeplink(test.url, test.description, log); await executeDeeplink(test.url, test.description, log);
} }
let succeeded = true;
try {
await executeDeeplink('timesafari://contactJunk', 'Non-existent deeplink', log);
} catch (error) {
log('✅ Non-existent deeplink failed as expected');
succeeded = false;
} finally {
if (succeeded) {
throw new Error('Non-existent deeplink should have failed');
}
}
log('✅ All deeplink tests completed successfully'); log('✅ All deeplink tests completed successfully');
} catch (error) { } catch (error) {
log('❌ Deeplink tests failed'); log('❌ Deeplink tests failed');