Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ville Saukkonen committed May 7, 2019
1 parent 694e943 commit 5c2f919
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 146 deletions.
12 changes: 6 additions & 6 deletions tests/react_16_3/react_16_3.exp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ References:
forwardRef.js:19:32
19| const badRef = React.createRef<HTMLDivElement>();
^^^^^^^^^^^^^^ [1]
<BUILTINS>/react-dom.js:290:22
290| button: {instance: HTMLButtonElement, props: {children?: React$Node, [key: string]: any}},
^^^^^^^^^^^^^^^^^ [2]
<BUILTINS>/react-dom.js:290:44
290| button: ReactDOM$HTMLElementJSXIntrinsic<HTMLButtonElement, ReactDOM$HTMLElementProps>,
^^^^^^^^^^^^^^^^^ [2]
<BUILTINS>/react.js:240:6
240| ): {|current: null | T|};
^^^^^^^^^^^^^^^^^^^^^ [3]
Expand Down Expand Up @@ -72,9 +72,9 @@ References:
forwardRef.js:23:50
23| const _g = <FancyButton foo={3} ref={(x: null | HTMLDivElement) => x} />; // Incorrect ref type
^^^^^^^^^^^^^^ [3]
<BUILTINS>/react-dom.js:290:22
290| button: {instance: HTMLButtonElement, props: {children?: React$Node, [key: string]: any}},
^^^^^^^^^^^^^^^^^ [4]
<BUILTINS>/react-dom.js:290:44
290| button: ReactDOM$HTMLElementJSXIntrinsic<HTMLButtonElement, ReactDOM$HTMLElementProps>,
^^^^^^^^^^^^^^^^^ [4]


Error ---------------------------------------------------------------------------------------------- forwardRef.js:42:12
Expand Down
Loading

0 comments on commit 5c2f919

Please sign in to comment.