Skip to content

Commit 0a68c28

Browse files
committed
Test for #1694
1 parent 2899e57 commit 0a68c28

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/lib/rules/prop-types.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3852,6 +3852,21 @@ ruleTester.run('prop-types', rule, {
38523852
errors: [{
38533853
message: '\'foo.baz\' is missing in props validation'
38543854
}]
3855+
},
3856+
{
3857+
code: `
3858+
const ForAttendees = ({ page }) => (
3859+
<>
3860+
<section>{page}</section>
3861+
</>
3862+
);
3863+
3864+
export default ForAttendees;
3865+
`,
3866+
parser: 'babel-eslint',
3867+
errors: [{
3868+
message: '\'page\' is missing in props validation'
3869+
}]
38553870
}
38563871
]
38573872
});

0 commit comments

Comments
 (0)