Skip to content

Commit

Permalink
Update packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
  • Loading branch information
omril1 and Josh-Cena committed Nov 18, 2022
1 parent a68b13a commit 7e2185e
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -201,10 +201,10 @@ ruleTester.run('prefer-optional-chain', rule, {
'!a.#foo || !a.#foo.bar;',
'a.#foo?.bar;',
'!a.#foo?.bar;',
'foo().#a;',
'a.b.#a;',
'new A().#b;',
'(await a).#b;',
'!foo().#a || a;',
'!a.b.#a || a;',
'!new A().#b || a;',
'!(await a).#b || a;',
// currently do not handle complex computed properties
'foo && foo[bar as string] && foo[bar as string].baz;',
'foo && foo[1 + 2] && foo[1 + 2].baz;',
Expand Down

0 comments on commit 7e2185e

Please sign in to comment.