kopia lustrzana https://gitlab.com/rysiekpl/libresilient
no such thing as "fail()" in Deno testing system
rodzic
8f23bc6965
commit
707ce71102
|
@ -850,7 +850,7 @@ describe('service-worker', async () => {
|
||||||
return true;
|
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 () => {
|
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?
|
// did we get the new config?
|
||||||
if (await window.waitForCacheAction(config_url) === mock_response_data2.data) {
|
if (await window.waitForCacheAction(config_url) === mock_response_data2.data) {
|
||||||
// we did! that's a paddling!
|
// 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?
|
// did we get the new config?
|
||||||
if (await window.waitForCacheAction(config_url) === mock_response_data2.data) {
|
if (await window.waitForCacheAction(config_url) === mock_response_data2.data) {
|
||||||
// we did! that's a paddling
|
// we did! that's a paddling
|
||||||
fail('New config failed to cache, apparently!')
|
throw new Error('New config failed to cache, apparently!')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Ładowanie…
Reference in New Issue