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', () => {
5555 } ) ;
5656 it ( 'does not affect pure-render logic' , ( done ) => {
5757 let Component ,
58- instance ,
59- rendered = false ;
58+ rendered ;
59+
60+ rendered = false
6061
6162 const styles = {
6263 foo : 'foo-1'
@@ -78,11 +79,11 @@ describe('extendReactClass', () => {
7879
7980 Component = extendReactClass ( Component , styles ) ;
8081
81- instance = TestUtils . renderIntoDocument ( < Component foo = 'bar' /> ) ;
82-
82+ const instance = TestUtils . renderIntoDocument ( < Component foo = 'bar' /> ) ;
83+
8384 // trigger shouldComponentUpdate
8485 instance . setState ( { } ) ;
85- } ) ;
86+ } ) ;
8687 } ) ;
8788 context ( 'overwriting default styles using "styles" property of the extended component' , ( ) => {
8889 it ( 'overwrites default styles' , ( done ) => {
You can’t perform that action at this time.
0 commit comments