From 054ca40ff15df6af4178f8c02eb7fefcd6a9fcf5 Mon Sep 17 00:00:00 2001 From: Albert Siddhartha Slawinski Date: Wed, 13 Feb 2019 20:01:44 -0800 Subject: [PATCH] In tests replace string refs with function refs retaining the instance after the unmount --- test/Transition-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Transition-test.js b/test/Transition-test.js index a7fad35a..6034d86f 100644 --- a/test/Transition-test.js +++ b/test/Transition-test.js @@ -264,7 +264,7 @@ describe('Transition', () => { return ( this.transition = this.transition || transition} mountOnEnter in={this.state.in} timeout={10} @@ -276,7 +276,7 @@ describe('Transition', () => { } getStatus = () => { - return this.refs.transition.state.status + return this.transition.state.status } } @@ -337,7 +337,7 @@ describe('Transition', () => { return ( this.transition = this.transition || transition} unmountOnExit in={this.state.in} timeout={10} @@ -349,7 +349,7 @@ describe('Transition', () => { } getStatus = () => { - return this.refs.transition.state.status + return this.transition.state.status } }