From 0aa5c3db6db6534f2a50ff3749848165999fc706 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 23 Aug 2017 10:39:37 -0700 Subject: [PATCH] react-dom: Revert test change (#19280) --- types/react-dom/react-dom-tests.ts | 2 +- types/react-dom/tslint.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/react-dom/react-dom-tests.ts b/types/react-dom/react-dom-tests.ts index c7d63679c8..865d74e386 100644 --- a/types/react-dom/react-dom-tests.ts +++ b/types/react-dom/react-dom-tests.ts @@ -55,7 +55,7 @@ describe('React dom test utils', () => { React.createElement('input', { type: 'text' }), element ) as Element; - const node = ReactDOM.findDOMNode(dom); + const node = ReactDOM.findDOMNode(dom) as HTMLInputElement; node.value = 'giraffe'; ReactTestUtils.Simulate.change(node); diff --git a/types/react-dom/tslint.json b/types/react-dom/tslint.json index 3866ae7932..c1874f7fe3 100644 --- a/types/react-dom/tslint.json +++ b/types/react-dom/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "dt-header": false + "dt-header": false, + "no-unnecessary-type-assertion": false } } \ No newline at end of file