From 5c2f9192d42d2cd16fd04bc990c5115906866ae8 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Mon, 18 Mar 2019 15:25:22 +0200 Subject: [PATCH] update tests --- tests/react_16_3/react_16_3.exp | 12 +- tests/react_dom/react_dom.exp | 327 ++++++++++++++++++-------------- 2 files changed, 193 insertions(+), 146 deletions(-) diff --git a/tests/react_16_3/react_16_3.exp b/tests/react_16_3/react_16_3.exp index ccaaafcfb9b..9a391c1cd65 100644 --- a/tests/react_16_3/react_16_3.exp +++ b/tests/react_16_3/react_16_3.exp @@ -41,9 +41,9 @@ References: forwardRef.js:19:32 19| const badRef = React.createRef(); ^^^^^^^^^^^^^^ [1] - /react-dom.js:290:22 - 290| button: {instance: HTMLButtonElement, props: {children?: React$Node, [key: string]: any}}, - ^^^^^^^^^^^^^^^^^ [2] + /react-dom.js:290:44 + 290| button: ReactDOM$HTMLElementJSXIntrinsic, + ^^^^^^^^^^^^^^^^^ [2] /react.js:240:6 240| ): {|current: null | T|}; ^^^^^^^^^^^^^^^^^^^^^ [3] @@ -72,9 +72,9 @@ References: forwardRef.js:23:50 23| const _g = x} />; // Incorrect ref type ^^^^^^^^^^^^^^ [3] - /react-dom.js:290:22 - 290| button: {instance: HTMLButtonElement, props: {children?: React$Node, [key: string]: any}}, - ^^^^^^^^^^^^^^^^^ [4] + /react-dom.js:290:44 + 290| button: ReactDOM$HTMLElementJSXIntrinsic, + ^^^^^^^^^^^^^^^^^ [4] Error ---------------------------------------------------------------------------------------------- forwardRef.js:42:12 diff --git a/tests/react_dom/react_dom.exp b/tests/react_dom/react_dom.exp index b4c6bece1e1..4a713568002 100644 --- a/tests/react_dom/react_dom.exp +++ b/tests/react_dom/react_dom.exp @@ -11,8 +11,8 @@ References: dangerouslySetInnerHTML.js:5:10 5|
; // Error: Expected object ^^^^^^^^^^^^^^^^^^^^^^^ [1] - /react-dom.js:398:29 - 398| dangerouslySetInnerHTML?: { __html: string }, + /react-dom.js:587:29 + 587| dangerouslySetInnerHTML?: { __html: string }, ^^^^^^^^^^^^^^^^^^ [2] @@ -29,8 +29,8 @@ References: dangerouslySetInnerHTML.js:6:34 6|
; // Error: Expected object ^^^^^^^^^^^^^^^^^^^^^^ [1] - /react-dom.js:398:29 - 398| dangerouslySetInnerHTML?: { __html: string }, + /react-dom.js:587:29 + 587| dangerouslySetInnerHTML?: { __html: string }, ^^^^^^^^^^^^^^^^^^ [2] @@ -47,17 +47,68 @@ References: dangerouslySetInnerHTML.js:8:35 8|
Hello" }} />; // Error: Missing __html ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] - /react-dom.js:398:29 - 398| dangerouslySetInnerHTML?: { __html: string }, + /react-dom.js:587:29 + 587| dangerouslySetInnerHTML?: { __html: string }, ^^^^^^^^^^^^^^^^^^ [2] +Error ---------------------------------------------------------------------------------------------------- events.js:6:1 + +Cannot create `input` element because string [1] is incompatible with function type [2] in property `onChange`. + + events.js:6:1 + 6| ; // Error: Expected function + ^^^^^^^^^^^^^^^^^^^^^^^^ + +References: + events.js:6:17 + 6| ; // Error: Expected function + ^^^^^ [1] + /react-dom.js:436:14 + 436| onChange?: (SyntheticEvent) => void, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] + + +Error ---------------------------------------------------------------------------------------------------- events.js:8:1 + +Cannot create `textarea` element because `SyntheticKeyboardEvent` [1] is incompatible with `SyntheticMouseEvent` [2] in +the first argument of property `onKeyDown`. + + events.js:8:1 + 8|