Skip to content

Commit b5768d6

Browse files
committed
fix build 12.x failure
1 parent 077c3d9 commit b5768d6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/lib/rules/no-try-invoke.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ const RuleTester = require('eslint').RuleTester;
44
const { ERROR_MESSAGE } = rule;
55
const ruleTester = new RuleTester({
66
parserOptions: {
7-
ecmaVersion: 2020,
7+
ecmaVersion: 2018,
88
sourceType: 'module',
99
},
1010
});
1111

1212
ruleTester.run('no-try-invoke', rule, {
1313
valid: [
14-
// with optional chaining
15-
'this.foo?.()',
16-
17-
// with tryInvoke
1814
"tryInvoke(this, 'foo');",
1915
"import { tryInvoke } from '@ember/utils'; foo.tryInvoke(this, 'foo');",
2016
"import { tryInvoke } from '@ember/utils'; tryInvoke.foo(this, 'foo');",

0 commit comments

Comments
 (0)