Skip to content

Commit c7cf2ae

Browse files
committed
Shorten test
1 parent 2fabd1f commit c7cf2ae

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/lib/rules/prop-types.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,14 +1671,8 @@ ruleTester.run('prop-types', rule, {
16711671
parser: 'babel-eslint'
16721672
}, {
16731673
code: `
1674-
type PropsA = {
1675-
foo: string,
1676-
};
1677-
1678-
type PropsB = {
1679-
bar: string,
1680-
};
1681-
1674+
type PropsA = { foo: string };
1675+
type PropsB = { bar: string };
16821676
type Props = PropsA & PropsB;
16831677
16841678
class Bar extends React.Component {

0 commit comments

Comments
 (0)