Re-enable flow-jsx-func-attr test (#2541)
parent
60f5836b37
commit
cf6258ab4f
|
@ -1,5 +1,12 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`func_inside_attr.js 1`] = `
|
||||
<bar x={function (x): Array<string> {}} />
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
<bar x={function(x): Array<string> {}} />;
|
||||
|
||||
`;
|
||||
|
||||
exports[`return_type.js 1`] = `
|
||||
const fail = (): X => <x />;
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<bar x={function (x): Array<string> {}} />
|
Loading…
Reference in New Issue