File tree 2 files changed +7
-8
lines changed
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';
10
10
11
11
import Main from 'components/Main' ;
12
12
13
- describe ( 'MainComponent' , ( ) => {
14
- let MainComponent ;
13
+ describe ( 'MainComponent' , function ( ) {
15
14
16
- beforeEach ( ( ) => {
17
- MainComponent = createComponent ( Main ) ;
15
+ beforeEach ( function ( ) {
16
+ this . MainComponent = createComponent ( Main ) ;
18
17
} ) ;
19
18
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' ) ;
22
21
} ) ;
23
22
} ) ;
Original file line number Diff line number Diff line change 5
5
6
6
import config from 'config' ;
7
7
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 ( ) {
10
10
expect ( config . appEnv ) . to . equal ( 'test' ) ;
11
11
} ) ;
12
12
} ) ;
You can’t perform that action at this time.
0 commit comments