@@ -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