From b32f790b0352199e08035552db61836fad85d35d Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 5 Jun 2023 07:47:51 +1200 Subject: [PATCH] test: remove unneeded arrays --- .../__fixtures__/createBannedAttributeTestCases.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/__tests__/__fixtures__/createBannedAttributeTestCases.js b/src/__tests__/__fixtures__/createBannedAttributeTestCases.js index 3a3adb8..e0abd3a 100644 --- a/src/__tests__/__fixtures__/createBannedAttributeTestCases.js +++ b/src/__tests__/__fixtures__/createBannedAttributeTestCases.js @@ -60,7 +60,7 @@ export default ({ preferred, negatedPreferred, attribute }) => { message: `Use ${preferred} instead of checking .${attribute} directly`, }, ], - output: `expect(getByText('foo')).${[preferred]}`, + output: `expect(getByText('foo')).${preferred}`, }, { code: `expect(getByText('foo').${attribute}).toBeFalsy()`, @@ -69,7 +69,7 @@ export default ({ preferred, negatedPreferred, attribute }) => { message: `Use ${negatedPreferred} instead of checking .${attribute} directly`, }, ], - output: `expect(getByText('foo')).${[negatedPreferred]}`, + output: `expect(getByText('foo')).${negatedPreferred}`, }, { code: `const el = getByText('foo'); expect(el.${attribute}).toBe(true)`, @@ -78,7 +78,7 @@ export default ({ preferred, negatedPreferred, attribute }) => { message: `Use ${preferred} instead of checking .${attribute} directly`, }, ], - output: `const el = getByText('foo'); expect(el).${[preferred]}`, + output: `const el = getByText('foo'); expect(el).${preferred}`, }, { code: `const el = getByRole('button'); expect(el.${attribute}).toBe(true)`, @@ -87,7 +87,7 @@ export default ({ preferred, negatedPreferred, attribute }) => { message: `Use ${preferred} instead of checking .${attribute} directly`, }, ], - output: `const el = getByRole('button'); expect(el).${[preferred]}`, + output: `const el = getByRole('button'); expect(el).${preferred}`, }, ];