Browse Source

add a test for a non-existent deep link

pull/127/head
Trent Larson 2 weeks ago
parent
commit
ac58804cb5
  1. 12
      scripts/test-android.js

12
scripts/test-android.js

@ -178,6 +178,18 @@ const runDeeplinkTests = async (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');
} catch (error) {
log('❌ Deeplink tests failed');

Loading…
Cancel
Save