Skip to content

Commit aafaecd

Browse files
committed
Undo the ref change
1 parent 320b0e5 commit aafaecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Transition-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ describe('Transition', () => {
268268

269269
return (
270270
<Transition
271-
ref={transition => this.transition = this.transition || transition}
271+
ref="transition"
272272
mountOnEnter
273273
in={this.state.in}
274274
timeout={10}
@@ -280,7 +280,7 @@ describe('Transition', () => {
280280
}
281281

282282
getStatus = () => {
283-
return this.transition.state.status
283+
return this.refs.transition.state.status
284284
}
285285
}
286286

@@ -341,7 +341,7 @@ describe('Transition', () => {
341341

342342
return (
343343
<Transition
344-
ref={transition => this.transition = this.transition || transition}
344+
ref="transition"
345345
unmountOnExit
346346
in={this.state.in}
347347
timeout={10}
@@ -353,7 +353,7 @@ describe('Transition', () => {
353353
}
354354

355355
getStatus = () => {
356-
return this.transition.state.status
356+
return this.refs.transition.state.status
357357
}
358358
}
359359

0 commit comments

Comments
 (0)