@@ -63,11 +63,11 @@ describe('compile', () => {
63
63
const testWebpackConfig = 'testconfig' ;
64
64
module . webpackConfig = testWebpackConfig ;
65
65
return expect ( module . compile ( ) ) . to . be . fulfilled
66
- . then ( ( ) => {
67
- expect ( webpackMock ) . to . have . been . calledWith ( testWebpackConfig ) ;
68
- expect ( webpackMock . compilerMock . run ) . to . have . been . calledOnce ;
69
- return null ;
70
- } ) ;
66
+ . then ( ( ) => {
67
+ expect ( webpackMock ) . to . have . been . calledWith ( testWebpackConfig ) ;
68
+ expect ( webpackMock . compilerMock . run ) . to . have . been . calledOnce ;
69
+ return null ;
70
+ } ) ;
71
71
} ) ;
72
72
73
73
it ( 'should fail if there are compilation errors' , ( ) => {
@@ -93,11 +93,11 @@ describe('compile', () => {
93
93
webpackMock . compilerMock . run . reset ( ) ;
94
94
webpackMock . compilerMock . run . yields ( null , multiStats ) ;
95
95
return expect ( module . compile ( ) ) . to . be . fulfilled
96
- . then ( ( ) => {
97
- expect ( webpackMock ) . to . have . been . calledWith ( testWebpackConfig ) ;
98
- expect ( webpackMock . compilerMock . run ) . to . have . been . calledOnce ;
99
- return null ;
100
- } ) ;
96
+ . then ( ( ) => {
97
+ expect ( webpackMock ) . to . have . been . calledWith ( testWebpackConfig ) ;
98
+ expect ( webpackMock . compilerMock . run ) . to . have . been . calledOnce ;
99
+ return null ;
100
+ } ) ;
101
101
} ) ;
102
102
103
103
it ( 'should use correct stats option' , ( ) => {
@@ -118,12 +118,12 @@ describe('compile', () => {
118
118
webpackMock . compilerMock . run . reset ( ) ;
119
119
webpackMock . compilerMock . run . yields ( null , mockStats ) ;
120
120
return ( expect ( module . compile ( ) ) . to . be . fulfilled )
121
- . then ( ( ) => {
122
- module . webpackConfig = [ testWebpackConfig ] ;
123
- return ( expect ( module . compile ( ) ) . to . be . fulfilled ) ;
124
- } )
125
- . then ( ( ) => {
126
- expect ( mockStats . toString . args ) . to . eql ( [ [ testWebpackConfig . stats ] , [ testWebpackConfig . stats ] ] ) ;
127
- } ) ;
121
+ . then ( ( ) => {
122
+ module . webpackConfig = [ testWebpackConfig ] ;
123
+ return ( expect ( module . compile ( ) ) . to . be . fulfilled ) ;
124
+ } )
125
+ . then ( ( ) => {
126
+ expect ( mockStats . toString . args ) . to . eql ( [ [ testWebpackConfig . stats ] , [ testWebpackConfig . stats ] ] ) ;
127
+ } ) ;
128
128
} ) ;
129
129
} ) ;
0 commit comments