From d9e8772c35686159ad59f83808dd725f8ebac889 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Thu, 17 Nov 2022 20:30:21 +0300 Subject: [PATCH] test: fix --- node-swc/__tests__/minify_test.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)})();" `); }); });