fix missing service worker

This commit is contained in:
Rich-Harris
2018-04-06 14:44:50 -07:00
parent ceb1caf1de
commit 45142cd037
2 changed files with 8 additions and 2 deletions

View File

@@ -559,6 +559,12 @@ function run({ mode, basepath = '' }) {
assert.equal(title, 'woohoo!');
});
});
it('includes service worker', () => {
return nightmare.goto(base).page.html().then(html => {
assert.ok(html.indexOf('service-worker.js') !== -1);
});
});
});
describe('headers', () => {