We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d73d000 commit 739a393Copy full SHA for 739a393
test/test.html.js
@@ -1,9 +1,10 @@
1
describe("service worker", function () {
2
it("should be activated on second run", function () {
3
+ const P = new Pokedex.Pokedex({cacheImages: true});
4
return navigator.serviceWorker.getRegistrations().then(function(registrations) {
5
const sw = registrations.filter(function(serviceworker) {
6
return serviceworker.active.scriptURL.endsWith('pokeapi-js-wrapper-sw.js')
- });
7
+ });
8
expect(sw).to.have.lengthOf(1)
9
expect(sw[0].active.state).to.be.equal('activated')
10
});
0 commit comments