Skip to content

Commit fb47111

Browse files
Matt Gauntjeffposnick
authored andcommitted
100% sw coverage (GoogleChrome#1015)
1 parent 21fa542 commit fb47111

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/workbox-sw/node/test-WorkboxSW.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ describe(`[workbox-sw] WorkboxSW`, function() {
104104
});
105105
}).to.throw();
106106
});
107+
108+
it(`should not throw on no config and environment should stay the same`, function() {
109+
self.workbox = new WorkboxSW();
110+
111+
const originalOptions = self.workbox._options;
112+
113+
self.workbox.setConfig();
114+
115+
expect(self.workbox._options).to.equal(originalOptions);
116+
});
107117
});
108118

109119
describe(`skipWaiting`, function() {

0 commit comments

Comments
 (0)