Skip to content

Commit 739a393

Browse files
authored
test: enable SW
1 parent d73d000 commit 739a393

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.html.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
describe("service worker", function () {
22
it("should be activated on second run", function () {
3+
const P = new Pokedex.Pokedex({cacheImages: true});
34
return navigator.serviceWorker.getRegistrations().then(function(registrations) {
45
const sw = registrations.filter(function(serviceworker) {
56
return serviceworker.active.scriptURL.endsWith('pokeapi-js-wrapper-sw.js')
6-
});
7+
});
78
expect(sw).to.have.lengthOf(1)
89
expect(sw[0].active.state).to.be.equal('activated')
910
});

0 commit comments

Comments
 (0)