Skip to content

Commit 123905e

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

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
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
});

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"lint:fix": "npm run lint -- --fix",
2424
"lint": "eslint --config .eslintrc src __tests__ scripts",
2525
"prepublishOnly": "safe-publish-latest && not-in-publish || (npm run lint && npm run flow && npm run jest && npm run build)",
26-
"pretest": "npm run lint:fix && npm run flow",
2726
"test": "npm run jest",
2827
"test:ci": "npm run jest -- --ci --runInBand",
2928
"jest": "jest --coverage __tests__/**/*"

0 commit comments

Comments
 (0)