Skip to content

Commit d20affc

Browse files
committed
test: remove unneeded arrays
1 parent 96c364a commit d20affc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/__tests__/__fixtures__/createBannedAttributeTestCases.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
6060
message: `Use ${preferred} instead of checking .${attribute} directly`,
6161
},
6262
],
63-
output: `expect(getByText('foo')).${[preferred]}`,
63+
output: `expect(getByText('foo')).${preferred}`,
6464
},
6565
{
6666
code: `expect(getByText('foo').${attribute}).toBeFalsy()`,
@@ -69,7 +69,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
6969
message: `Use ${negatedPreferred} instead of checking .${attribute} directly`,
7070
},
7171
],
72-
output: `expect(getByText('foo')).${[negatedPreferred]}`,
72+
output: `expect(getByText('foo')).${negatedPreferred}`,
7373
},
7474
{
7575
code: `const el = getByText('foo'); expect(el.${attribute}).toBe(true)`,
@@ -78,7 +78,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
7878
message: `Use ${preferred} instead of checking .${attribute} directly`,
7979
},
8080
],
81-
output: `const el = getByText('foo'); expect(el).${[preferred]}`,
81+
output: `const el = getByText('foo'); expect(el).${preferred}`,
8282
},
8383
{
8484
code: `const el = getByRole('button'); expect(el.${attribute}).toBe(true)`,
@@ -87,7 +87,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
8787
message: `Use ${preferred} instead of checking .${attribute} directly`,
8888
},
8989
],
90-
output: `const el = getByRole('button'); expect(el).${[preferred]}`,
90+
output: `const el = getByRole('button'); expect(el).${preferred}`,
9191
},
9292
];
9393

0 commit comments

Comments
 (0)