File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2+ "env": {
3+ "mocha": true
4+ },
25 "globals": {
36 "expect": true
47 },
58 "rules": {
6- "import/no-extraneous-dependencies": 0
9+ "import/no-extraneous-dependencies": 0,
10+ "prefer-arrow-callback": 0,
11+ "func-names": 0,
12+ "strict": 0
713 }
814}
Original file line number Diff line number Diff line change @@ -2,17 +2,16 @@ import React from 'react';
22import { shallow } from 'enzyme' ;
33import App from 'components/App' ;
44
5- describe ( '<App />' , ( ) => {
5+ describe ( '<App />' , function ( ) {
66
7- let component ;
8- beforeEach ( ( ) => {
9- component = shallow ( < App /> ) ;
7+ beforeEach ( function ( ) {
8+ this . component = shallow ( < App /> ) ;
109 } ) ;
1110
12- describe ( 'when rendering the component' , ( ) => {
11+ describe ( 'when rendering the component' , function ( ) {
1312
14- it ( 'should have a className of "index"' , ( ) => {
15- expect ( component . hasClass ( 'index' ) ) . to . equal ( true ) ;
13+ it ( 'should have a className of "index"' , function ( ) {
14+ expect ( this . component . hasClass ( 'index' ) ) . to . equal ( true ) ;
1615 } ) ;
1716 } ) ;
1817} ) ;
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ import React from 'react';
22import { shallow } from 'enzyme' ;
33import YeomanImage from 'components/YeomanImage' ;
44
5- describe ( '<YeomanImage />' , ( ) => {
6-
7- it ( 'should render an image tag' , ( ) => {
5+ describe ( '<YeomanImage />' , function ( ) {
86
7+ it ( 'should render an image tag' , function ( ) {
98 const component = shallow ( < YeomanImage /> ) ;
109 expect ( component . find ( 'img' ) . length ) . to . equal ( 1 ) ;
1110 } ) ;
Original file line number Diff line number Diff line change 11import config from 'config' ;
22
3- describe ( 'Application Environment' , ( ) => {
3+ describe ( 'Application Environment' , function ( ) {
44
5- it ( 'should load app config file depending on current --env' , ( ) => {
5+ it ( 'should load app config file depending on current --env' , function ( ) {
66 expect ( config . appEnv ) . to . equal ( 'test' ) ;
77 } ) ;
88} ) ;
You can’t perform that action at this time.
0 commit comments