Fix test for production build
Webpack 5 minifies it now
This commit is contained in:
parent
41831d18b1
commit
c2e8eaf9df
@ -66,7 +66,7 @@ describe("public folder", function () {
|
||||
fs.readFile(path.join(publicFolder, "service-worker.js"), "utf8", function (err, contents) {
|
||||
expect(err).to.be.null;
|
||||
|
||||
expect(contents.includes("const cacheName =")).to.be.true;
|
||||
expect(contents.includes("const cacheName")).to.be.true;
|
||||
expect(contents.includes("__HASH__")).to.be.false;
|
||||
|
||||
done();
|
||||
|
Loading…
Reference in New Issue
Block a user