@@ -60,7 +60,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
60
60
message : `Use ${ preferred } instead of checking .${ attribute } directly` ,
61
61
} ,
62
62
] ,
63
- output : `expect(getByText('foo')).${ [ preferred ] } ` ,
63
+ output : `expect(getByText('foo')).${ preferred } ` ,
64
64
} ,
65
65
{
66
66
code : `expect(getByText('foo').${ attribute } ).toBeFalsy()` ,
@@ -69,7 +69,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
69
69
message : `Use ${ negatedPreferred } instead of checking .${ attribute } directly` ,
70
70
} ,
71
71
] ,
72
- output : `expect(getByText('foo')).${ [ negatedPreferred ] } ` ,
72
+ output : `expect(getByText('foo')).${ negatedPreferred } ` ,
73
73
} ,
74
74
{
75
75
code : `const el = getByText('foo'); expect(el.${ attribute } ).toBe(true)` ,
@@ -78,7 +78,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
78
78
message : `Use ${ preferred } instead of checking .${ attribute } directly` ,
79
79
} ,
80
80
] ,
81
- output : `const el = getByText('foo'); expect(el).${ [ preferred ] } ` ,
81
+ output : `const el = getByText('foo'); expect(el).${ preferred } ` ,
82
82
} ,
83
83
{
84
84
code : `const el = getByRole('button'); expect(el.${ attribute } ).toBe(true)` ,
@@ -87,7 +87,7 @@ export default ({ preferred, negatedPreferred, attribute }) => {
87
87
message : `Use ${ preferred } instead of checking .${ attribute } directly` ,
88
88
} ,
89
89
] ,
90
- output : `const el = getByRole('button'); expect(el).${ [ preferred ] } ` ,
90
+ output : `const el = getByRole('button'); expect(el).${ preferred } ` ,
91
91
} ,
92
92
] ;
93
93
0 commit comments