forked from trent_larson/crowd-funder-for-time-pwa
add a test for a non-existent deep link
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user