Skip to content

Commit c86c224

Browse files
authored
Chore: fix incorrect test cases. (#82)
ObjectRestSpread has been in es spec.
1 parent 660074e commit c86c224

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

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

+1-19
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

@@ -208,12 +208,6 @@ tester.run('require-meta-docs-url', rule, {
208208
}
209209
`,
210210
output: null,
211-
parserOptions: {
212-
ecmaVersion: 2015,
213-
ecmaFeatures: {
214-
experimentalObjectRestSpread: true,
215-
},
216-
},
217211
errors: ['Rules should export a `meta.docs.url` property.'],
218212
},
219213

@@ -395,12 +389,6 @@ tester.run('require-meta-docs-url', rule, {
395389
options: [{
396390
pattern: 'plugin-name/{{ name }}.md',
397391
}],
398-
parserOptions: {
399-
ecmaVersion: 2015,
400-
ecmaFeatures: {
401-
experimentalObjectRestSpread: true,
402-
},
403-
},
404392
errors: ['Rules should export a `meta.docs.url` property.'],
405393
},
406394

@@ -670,12 +658,6 @@ url: "plugin-name/test.md"
670658
options: [{
671659
pattern: 'plugin-name/{{ name }}.md',
672660
}],
673-
parserOptions: {
674-
ecmaVersion: 2015,
675-
ecmaFeatures: {
676-
experimentalObjectRestSpread: true,
677-
},
678-
},
679661
errors: ['Rules should export a `meta.docs.url` property.'],
680662
filename: 'test.js',
681663
},

0 commit comments

Comments
 (0)