Skip to content

Commit

Permalink
test: remove unneeded arrays (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 4, 2023
1 parent 0672f7c commit 67385ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/__fixtures__/createBannedAttributeTestCases.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()`,
Expand All @@ -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)`,
Expand All @@ -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)`,
Expand All @@ -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}`,
},
];

Expand Down

0 comments on commit 67385ae

Please sign in to comment.