Skip to content

Commit 9ccc91d

Browse files
committed
Chore: add a test for #109
1 parent 234703c commit 9ccc91d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"private": true,
3+
"name": "test",
4+
"engines": {
5+
"vscode": "foo"
6+
}
7+
}

tests/lib/rules/no-unsupported-features.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,11 @@ ruleTester.run("no-unsupported-features", rule, [
12831283
parserOptions: { ecmaVersion: 2017 },
12841284
options: ["7.10.0"],
12851285
},
1286+
{
1287+
filename: fixture("without-node/a.js"),
1288+
code: "var a = () => 1",
1289+
env: { es6: true },
1290+
},
12861291
],
12871292
invalid: [
12881293
{

0 commit comments

Comments
 (0)