fix incorrect test

This commit is contained in:
Nolan Lawson
2019-02-16 00:13:27 -08:00
parent 351ab13d29
commit 37780656fd

View File

@@ -13,7 +13,7 @@ describe('export-webpack', function() {
it('injects <link rel=preload> tags', () => {
const index = fs.readFileSync(`${__dirname}/__sapper__/export/index.html`, 'utf8');
assert.ok(/rel=preload/, index);
assert.ok(/rel=preload/.test(index));
});
});