File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ import createComponent from 'helpers/shallowRenderHelper';
1010
1111import Main from 'components/Main' ;
1212
13- describe ( 'MainComponent' , ( ) => {
14- let MainComponent ;
13+ describe ( 'MainComponent' , function ( ) {
1514
16- beforeEach ( ( ) => {
17- MainComponent = createComponent ( Main ) ;
15+ beforeEach ( function ( ) {
16+ this . MainComponent = createComponent ( Main ) ;
1817 } ) ;
1918
20- it ( 'should have its component name as default className' , ( ) => {
21- expect ( MainComponent . props . className ) . to . equal ( 'index' ) ;
19+ it ( 'should have its component name as default className' , function ( ) {
20+ expect ( this . MainComponent . props . className ) . to . equal ( 'index' ) ;
2221 } ) ;
2322} ) ;
Original file line number Diff line number Diff line change 55
66import config from 'config' ;
77
8- describe ( 'appEnvConfigTests' , ( ) => {
9- it ( 'should load app config file depending on current --env' , ( ) => {
8+ describe ( 'appEnvConfigTests' , function ( ) {
9+ it ( 'should load app config file depending on current --env' , function ( ) {
1010 expect ( config . appEnv ) . to . equal ( 'test' ) ;
1111 } ) ;
1212} ) ;
You can’t perform that action at this time.
0 commit comments