Skip to content

Commit b4a8ced

Browse files
committed
Chore: fix incorrect test cases.
experimentalObjectRestSpread has been in es spec.
1 parent aebf1cf commit b4a8ced

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

tests/lib/rules/require-meta-docs-url.js

+2-17
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const rule = require('../../../lib/rules/require-meta-docs-url');
1919

2020
const tester = new RuleTester({
2121
parserOptions: {
22-
ecmaVersion: 2015,
22+
ecmaVersion: 2018,
2323
},
2424
});
2525

@@ -209,10 +209,7 @@ tester.run('require-meta-docs-url', rule, {
209209
`,
210210
output: null,
211211
parserOptions: {
212-
ecmaVersion: 2015,
213-
ecmaFeatures: {
214-
experimentalObjectRestSpread: true,
215-
},
212+
ecmaVersion: 2018,
216213
},
217214
errors: ['Rules should export a `meta.docs.url` property.'],
218215
},
@@ -395,12 +392,6 @@ tester.run('require-meta-docs-url', rule, {
395392
options: [{
396393
pattern: 'plugin-name/{{ name }}.md',
397394
}],
398-
parserOptions: {
399-
ecmaVersion: 2015,
400-
ecmaFeatures: {
401-
experimentalObjectRestSpread: true,
402-
},
403-
},
404395
errors: ['Rules should export a `meta.docs.url` property.'],
405396
},
406397

@@ -670,12 +661,6 @@ url: "plugin-name/test.md"
670661
options: [{
671662
pattern: 'plugin-name/{{ name }}.md',
672663
}],
673-
parserOptions: {
674-
ecmaVersion: 2015,
675-
ecmaFeatures: {
676-
experimentalObjectRestSpread: true,
677-
},
678-
},
679664
errors: ['Rules should export a `meta.docs.url` property.'],
680665
filename: 'test.js',
681666
},

0 commit comments

Comments
 (0)