From 233a59b4279b1427512d9e28e4217e1ffe81b100 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 8 Nov 2018 12:08:48 +0700 Subject: [PATCH] Remove deprecated componentWillMount test --- test/react-jsdom.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/react-jsdom.js b/test/react-jsdom.js index 0659bc2..8b160f4 100644 --- a/test/react-jsdom.js +++ b/test/react-jsdom.js @@ -10,12 +10,6 @@ class TestComponent extends React.Component { return
hi
; } - componentWillMount() { - if (typeof this.props.componentWillMount === 'function') { - this.props.componentWillMount(); - } - } - componentDidMount() { if (typeof this.props.componentDidMount === 'function') { this.props.componentDidMount(); @@ -49,10 +43,6 @@ test('ReactJSDOM allows window instance to be passed in', t => { t.is(elem.textContent, 'hi'); }); -test('componentWillMount fires', t => { - ReactJSDOM.render( t.pass()}/>); -}); - test('componentDidMount fires', t => { ReactJSDOM.render( t.pass()}/>); });