Fix test for production build

Webpack 5 minifies it now
This commit is contained in:
Pavel Djundik 2020-10-30 23:02:40 +02:00
parent 41831d18b1
commit c2e8eaf9df

View File

@ -66,7 +66,7 @@ describe("public folder", function () {
fs.readFile(path.join(publicFolder, "service-worker.js"), "utf8", function (err, contents) { fs.readFile(path.join(publicFolder, "service-worker.js"), "utf8", function (err, contents) {
expect(err).to.be.null; 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; expect(contents.includes("__HASH__")).to.be.false;
done(); done();