File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ describe('extendReactClass', () => {
55
55
} ) ;
56
56
it ( 'does not affect pure-render logic' , ( done ) => {
57
57
let Component ,
58
- instance ,
59
- rendered = false ;
58
+ rendered ;
59
+
60
+ rendered = false
60
61
61
62
const styles = {
62
63
foo : 'foo-1'
@@ -78,11 +79,11 @@ describe('extendReactClass', () => {
78
79
79
80
Component = extendReactClass ( Component , styles ) ;
80
81
81
- instance = TestUtils . renderIntoDocument ( < Component foo = 'bar' /> ) ;
82
-
82
+ const instance = TestUtils . renderIntoDocument ( < Component foo = 'bar' /> ) ;
83
+
83
84
// trigger shouldComponentUpdate
84
85
instance . setState ( { } ) ;
85
- } ) ;
86
+ } ) ;
86
87
} ) ;
87
88
context ( 'overwriting default styles using "styles" property of the extended component' , ( ) => {
88
89
it ( 'overwrites default styles' , ( done ) => {
You can’t perform that action at this time.
0 commit comments