Skip to content

Commit

Permalink
🐛 Set ecmaVersion on just one test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Anees Iqbal committed Dec 29, 2020
1 parent 5b45d48 commit 8abb5dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/lib/rules/jsx-embed-condition.js
Expand Up @@ -13,7 +13,7 @@ const RuleTester = require('eslint').RuleTester;
const rule = require('../../../lib/rules/jsx-embed-condition');

const parserOptions = {
ecmaVersion: 2020,
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
Expand Down Expand Up @@ -41,7 +41,10 @@ ruleTester.run('jsx-embed-condition', rule, {
}, {
code: '<App x={x && y}>{x ? <div>{y ? <y /> : <z />}</div> : null}</App>'
}, {
code: '<App test>{x ?? <div />}</App>'
code: '<App test>{x ?? <div />}</App>',
parserOptions: {
ecmaVersion: 2020
}
}],

invalid: [{
Expand Down

0 comments on commit 8abb5dc

Please sign in to comment.