diff --git a/node-swc/__tests__/minify_test.mjs b/node-swc/__tests__/minify_test.mjs index c12343e0cbf7..f090a2d55455 100644 --- a/node-swc/__tests__/minify_test.mjs +++ b/node-swc/__tests__/minify_test.mjs @@ -197,7 +197,8 @@ describe("should remove comments", () => { (function(){ /** * @license - */const longName = Math.random() + '_' + Math.random(); + */ + const longName = Math.random() + '_' + Math.random(); console.log(longName); })() `, @@ -212,7 +213,7 @@ describe("should remove comments", () => { expect(code).toMatchInlineSnapshot(` "(function(){/** * @license - */ const o=Math.random()+\\"_\\"+Math.random();console.log(o)})();" + */const o=Math.random()+\\"_\\"+Math.random();console.log(o)})();" `); }); it("should remove comment near to license", async () => { @@ -224,7 +225,8 @@ describe("should remove comments", () => { */ /* * 1 - */const longName = Math.random() + '_' + Math.random(); + */ + const longName = Math.random() + '_' + Math.random(); console.log(longName); })() `, @@ -239,7 +241,7 @@ describe("should remove comments", () => { expect(code).toMatchInlineSnapshot(` "(function(){/** * @license - */ const o=Math.random()+\\"_\\"+Math.random();console.log(o)})();" + */const o=Math.random()+\\"_\\"+Math.random();console.log(o)})();" `); }); });