Skip to content

Commit

Permalink
fix: use latest ECMAScript version in tests (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored Jul 19, 2023
1 parent 4924042 commit 7be0c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/lib/rules/no-only-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const RuleTester = require('eslint').RuleTester;
// Tests
// ------------------------------------------------------------------------------

const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 6 } });
const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 'latest' } });
ruleTester.run('no-only-tests', rule, {
valid: [
// No test cases with `only`
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/prefer-output-null.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ERROR = { messageId: 'useOutputNull', type: 'Property' };
// Tests
// ------------------------------------------------------------------------------

const ruleTester = new RuleTester();
const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 'latest' } });
ruleTester.run('prefer-output-null', rule, {
valid: [
`
Expand Down

0 comments on commit 7be0c76

Please sign in to comment.