We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe8dc9 commit afb7be2Copy full SHA for afb7be2
package.json
@@ -16,7 +16,7 @@
16
"repository": "https://github.com/atom-ide-community/babel-plugin-transform-not-strict",
17
"license": "MIT",
18
"scripts": {
19
- "test": "atom --test spec/test.js",
+ "test": "atom --test spec/spec.js",
20
"bump": "ncu -u"
21
},
22
"peerDependencies": {
spec/spec.js
@@ -0,0 +1,18 @@
1
+const pluginTester = require('babel-plugin-tester').default
2
+
3
+const transformNotStrict = require('../src/index.js')
4
5
+pluginTester({
6
+ plugin: transformNotStrict,
7
+ filename: __filename,
8
+ tests: [
9
+ {
10
+ code: '"not strict"; "use strict";',
11
+ output:'"not strict";',
12
+ },
13
14
+ code: '"not strict";',
15
+ ]
+})
0 commit comments