Skip to content

Commit 24d74e0

Browse files
tests: update ecmaVersion for ESLint v6 (mysticatea#24)
1 parent 8553834 commit 24d74e0

7 files changed

+10
-10
lines changed

test/find-variable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe("The 'findVariable' function", () => {
1313
},
1414
}))
1515
linter.verify(code, {
16-
parserOptions: { ecmaVersion: 2018 },
16+
parserOptions: { ecmaVersion: 2020 },
1717
rules: { test: "error" },
1818
})
1919

test/get-function-head-location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe("The 'getFunctionHeadLocation' function", () => {
121121
parserOptions: {
122122
ecmaVersion: semver.gte(eslint.Linter.version, "8.0.0")
123123
? 2022
124-
: 2018,
124+
: 2020,
125125
},
126126
},
127127
"test.js",

test/get-function-name-with-kind.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe("The 'getFunctionNameWithKind' function", () => {
141141
parserOptions: {
142142
ecmaVersion: semver.gte(eslint.Linter.version, "8.0.0")
143143
? 2022
144-
: 2018,
144+
: 2020,
145145
},
146146
})
147147

@@ -170,7 +170,7 @@ describe("The 'getFunctionNameWithKind' function", () => {
170170
parserOptions: {
171171
ecmaVersion: semver.gte(eslint.Linter.version, "8.0.0")
172172
? 2022
173-
: 2018,
173+
: 2020,
174174
},
175175
})
176176

test/get-innermost-scope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe("The 'getInnermostScope' function", () => {
6767
},
6868
}))
6969
linter.verify(code, {
70-
parserOptions: { ecmaVersion: 2018, ...parserOptions },
70+
parserOptions: { ecmaVersion: 2020, ...parserOptions },
7171
rules: { test: "error" },
7272
})
7373

test/get-property-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe("The 'getPropertyName' function", () => {
7070
parserOptions: {
7171
ecmaVersion: semver.gte(eslint.Linter.version, "8.0.0")
7272
? 2022
73-
: 2018,
73+
: 2020,
7474
},
7575
rules: { test: "error" },
7676
})

test/get-string-if-constant.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe("The 'getStringIfConstant' function", () => {
3131
},
3232
}))
3333
linter.verify(code, {
34-
parserOptions: { ecmaVersion: 2018 },
34+
parserOptions: { ecmaVersion: 2020 },
3535
rules: { test: "error" },
3636
})
3737

@@ -57,7 +57,7 @@ describe("The 'getStringIfConstant' function", () => {
5757
},
5858
}))
5959
linter.verify(code, {
60-
parserOptions: { ecmaVersion: 2018 },
60+
parserOptions: { ecmaVersion: 2020 },
6161
rules: { test: "error" },
6262
})
6363

test/is-parenthesized.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ describe("The 'isParenthesized' function", () => {
226226
}))
227227
const messages = linter.verify(code, {
228228
env: { es6: true },
229-
parserOptions: { ecmaVersion: 2018 },
229+
parserOptions: { ecmaVersion: 2020 },
230230
rules: { test: "error" },
231231
})
232232

@@ -302,7 +302,7 @@ describe("The 'isParenthesized' function", () => {
302302
}))
303303
const messages = linter.verify(code, {
304304
env: { es6: true },
305-
parserOptions: { ecmaVersion: 2018 },
305+
parserOptions: { ecmaVersion: 2020 },
306306
rules: { test: "error" },
307307
})
308308

0 commit comments

Comments
 (0)