Skip to content

Commit a1b37e0

Browse files
committed
update tests to account for fixed output
1 parent d52fcb2 commit a1b37e0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

__tests__/__util__/parserOptionsMapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ export default function parserOptionsMapper({
99
code,
1010
errors,
1111
options = [],
12+
output = null,
1213
parserOptions = {},
1314
}) {
1415
return {
1516
code,
1617
errors,
1718
options,
19+
output,
1820
parserOptions: {
1921
...defaultParserOptions,
2022
...parserOptions,

__tests__/src/rules/has-valid-accessibility-descriptors-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,14 @@ ruleTester.run('has-valid-accessibility-descriptors', rule, {
7474
<Text>Back</Text>
7575
</TouchableOpacity>`,
7676
errors: [expectedError],
77+
output: `<TouchableOpacity accessible={false}>
78+
<Text>Back</Text>
79+
</TouchableOpacity>`,
7780
},
7881
{
7982
code: `<TextInput />`,
8083
errors: [expectedError],
84+
output: `<TextInput accessible={false} />`,
8185
},
8286
].map(parserOptionsMapper),
8387
});

0 commit comments

Comments
 (0)