no such thing as "fail()" in Deno testing system

merge-requests/23/merge
Michał 'rysiek' Woźniak 2024-01-28 22:41:02 +00:00
rodzic 8f23bc6965
commit 707ce71102
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -850,7 +850,7 @@ describe('service-worker', async () => {
return true;
}
}
fail('New config failed to cache, apparently!')
throw new Error('New config failed to cache, apparently!')
})
it("should use a stale cached valid config.json file without a fetch; invalid config.json retrieved using the configured plugins should not be cached", async () => {
@ -920,7 +920,7 @@ describe('service-worker', async () => {
// did we get the new config?
if (await window.waitForCacheAction(config_url) === mock_response_data2.data) {
// we did! that's a paddling!
fail('New config failed to cache, apparently!')
throw new Error('New config failed to cache, apparently!')
}
}
})
@ -992,7 +992,7 @@ describe('service-worker', async () => {
// did we get the new config?
if (await window.waitForCacheAction(config_url) === mock_response_data2.data) {
// we did! that's a paddling
fail('New config failed to cache, apparently!')
throw new Error('New config failed to cache, apparently!')
}
}
})