Re-enable flow-jsx-func-attr test (#2541)

master
Brian Ng 2017-07-25 18:07:37 -05:00 committed by Lucas Azzola
parent 60f5836b37
commit cf6258ab4f
2 changed files with 8 additions and 0 deletions

View File

@ -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 />;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -0,0 +1 @@
<bar x={function (x): Array<string> {}} />