Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 17, 2022
1 parent dbc9506 commit 94622f0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions node-swc/__tests__/minify_test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,13 @@ describe("should remove comments", () => {
);
});

it("should preserve licnese", async () => {
it("should preserve license", async () => {
const { code } = await swc.minify(
`
(function(){
/**
* @license
*/
const longName = Math.random() + '_' + Math.random();
*/const longName = Math.random() + '_' + Math.random();
console.log(longName);
})()
`,
Expand All @@ -216,7 +215,7 @@ describe("should remove comments", () => {
*/ const o=Math.random()+\\"_\\"+Math.random();console.log(o)})();"
`);
});
it("should remove comment near to licnese", async () => {
it("should remove comment near to license", async () => {
const { code } = await swc.minify(
`
(function(){
Expand All @@ -225,8 +224,7 @@ describe("should remove comments", () => {
*/
/*
* 1
*/
const longName = Math.random() + '_' + Math.random();
*/const longName = Math.random() + '_' + Math.random();
console.log(longName);
})()
`,
Expand Down

0 comments on commit 94622f0

Please sign in to comment.