diff --git a/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts b/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts index 6dfca9f1b5a..d2f73514b7a 100644 --- a/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts +++ b/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts @@ -1426,20 +1426,5 @@ foo?.bar(/* comment */a, }, ], }, - { - code: 'a[a.#b] && a[a.#b].c;', - output: null, - errors: [ - { - messageId: 'preferOptionalChain', - suggestions: [ - { - messageId: 'optionalChainSuggest', - output: 'a[a.#b]?.c;', - }, - ], - }, - ], - }, ], });