From 0afc516667c81d5b6f9c8ea09f7d6415bccc987d Mon Sep 17 00:00:00 2001 From: Omri Luzon Date: Sat, 24 Dec 2022 13:56:06 +0200 Subject: [PATCH] over covered case --- .../tests/rules/prefer-optional-chain.test.ts | 15 --------------- 1 file changed, 15 deletions(-) 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;', - }, - ], - }, - ], - }, ], });