Skip to content

Commit 2fc684b

Browse files
committed
add more tests
1 parent c5bd2b2 commit 2fc684b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

spec/spec.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,37 @@ pluginTester({
1414
code: '"not strict";',
1515
output:'"not strict";',
1616
},
17+
{
18+
code: '"use strict";',
19+
output: '"use strict";',
20+
},
21+
{
22+
code: '"use strict"; "not strict";',
23+
output:'"not strict";',
24+
},
25+
{
26+
code: `
27+
"use strict";
28+
"not strict";
29+
30+
process.platform = "windows";
31+
`,
32+
output: `
33+
"not strict";
34+
35+
process.platform = "windows";`,
36+
},
37+
{
38+
code: `
39+
"use strict";
40+
"not strict";
41+
42+
let x = 1;
43+
`,
44+
output: `
45+
"not strict";
46+
47+
let x = 1;`,
48+
},
1749
]
1850
})

0 commit comments

Comments
 (0)