From c2e8eaf9dfed3720657b80619397f6d037d1c835 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 30 Oct 2020 23:02:40 +0200 Subject: [PATCH] Fix test for production build Webpack 5 minifies it now --- test/tests/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/build.js b/test/tests/build.js index e4e5e825..f54e80c0 100644 --- a/test/tests/build.js +++ b/test/tests/build.js @@ -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();