@@ -28,7 +28,11 @@ describe('loaders/eslint', () => {
28
28
config . enableEslintLoader ( ) ;
29
29
const actualOptions = eslintLoader . getOptions ( config ) ;
30
30
31
- expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 4 ) ;
31
+ expect ( actualOptions ) . to . deep . equal ( {
32
+ cache : true ,
33
+ parser : 'babel-eslint' ,
34
+ emitWarning : true
35
+ } ) ;
32
36
} ) ;
33
37
34
38
it ( 'getOptions() with extra options' , ( ) => {
@@ -39,8 +43,12 @@ describe('loaders/eslint', () => {
39
43
40
44
const actualOptions = eslintLoader . getOptions ( config ) ;
41
45
42
- expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 5 ) ;
43
- expect ( actualOptions . extends ) . to . equal ( 'airbnb' ) ;
46
+ expect ( actualOptions ) . to . deep . equal ( {
47
+ cache : true ,
48
+ parser : 'babel-eslint' ,
49
+ emitWarning : true ,
50
+ extends : 'airbnb'
51
+ } ) ;
44
52
} ) ;
45
53
46
54
it ( 'getOptions() with an overridden option' , ( ) => {
@@ -51,8 +59,11 @@ describe('loaders/eslint', () => {
51
59
52
60
const actualOptions = eslintLoader . getOptions ( config ) ;
53
61
54
- expect ( Object . keys ( actualOptions ) ) . to . have . lengthOf ( 4 ) ;
55
- expect ( actualOptions . emitWarning ) . to . equal ( false ) ;
62
+ expect ( actualOptions ) . to . deep . equal ( {
63
+ cache : true ,
64
+ parser : 'babel-eslint' ,
65
+ emitWarning : false
66
+ } ) ;
56
67
} ) ;
57
68
58
69
it ( 'getOptions() with a callback that returns an object' , ( ) => {
0 commit comments