@@ -32,7 +32,7 @@ describe('bundle task', () => {
32
32
} ) . catch ( err => {
33
33
// assert
34
34
expect ( rollup . rollup ) . toHaveBeenCalled ( ) ;
35
- expect ( err . message ) . toBe ( errorText , `Received ${ err . message } instead of expected ${ errorText } ` ) ;
35
+ expect ( err . message ) . toBe ( errorText ) ;
36
36
done ( ) ;
37
37
} ) ;
38
38
} ) ;
@@ -62,7 +62,7 @@ describe('bundle task', () => {
62
62
} ) . catch ( err => {
63
63
// assert
64
64
expect ( webpack . webpack ) . toHaveBeenCalled ( ) ;
65
- expect ( err . message ) . toBe ( errorText , `Received ${ err . message } instead of expected ${ errorText } ` ) ;
65
+ expect ( err . message ) . toBe ( errorText ) ;
66
66
done ( ) ;
67
67
} ) ;
68
68
} ) ;
@@ -96,7 +96,7 @@ describe('bundle task', () => {
96
96
} ) . catch ( err => {
97
97
// assert
98
98
expect ( rollup . rollupUpdate ) . toHaveBeenCalled ( ) ;
99
- expect ( err . message ) . toBe ( errorText , `Received ${ err . message } instead of expected ${ errorText } ` ) ;
99
+ expect ( err . message ) . toBe ( errorText ) ;
100
100
done ( ) ;
101
101
} ) ;
102
102
} ) ;
@@ -129,7 +129,7 @@ describe('bundle task', () => {
129
129
} ) . catch ( err => {
130
130
// assert
131
131
expect ( webpack . webpackUpdate ) . toHaveBeenCalled ( ) ;
132
- expect ( err . message ) . toBe ( errorText , `Received ${ err . message } instead of expected ${ errorText } ` ) ;
132
+ expect ( err . message ) . toBe ( errorText ) ;
133
133
done ( ) ;
134
134
} ) ;
135
135
@@ -152,7 +152,7 @@ describe('bundle task', () => {
152
152
153
153
// assert
154
154
expect ( rollup . getRollupConfig ) . toHaveBeenCalledWith ( context , null ) ;
155
- expect ( result ) . toEqual ( config . sourceMap , `Expected result ${ result } to equal ${ config . sourceMap } ` ) ;
155
+ expect ( result ) . toEqual ( config . sourceMap ) ;
156
156
} ) ;
157
157
158
158
it ( 'should get false when devtool is null for webpack' , ( ) => {
@@ -165,7 +165,7 @@ describe('bundle task', () => {
165
165
166
166
// assert
167
167
expect ( webpack . getWebpackConfig ) . toHaveBeenCalledWith ( context , null ) ;
168
- expect ( result ) . toEqual ( false , `Expected result ${ result } to equal false` ) ;
168
+ expect ( result ) . toEqual ( false ) ;
169
169
} ) ;
170
170
171
171
it ( 'should get false when devtool is valid' , ( ) => {
@@ -178,7 +178,7 @@ describe('bundle task', () => {
178
178
179
179
// assert
180
180
expect ( webpack . getWebpackConfig ) . toHaveBeenCalledWith ( context , null ) ;
181
- expect ( result ) . toEqual ( true , `Expected result ${ result } to equal true` ) ;
181
+ expect ( result ) . toEqual ( true ) ;
182
182
} ) ;
183
183
} ) ;
184
184
@@ -196,7 +196,7 @@ describe('bundle task', () => {
196
196
// assert
197
197
expect ( rollup . getRollupConfig ) . toHaveBeenCalledWith ( context , null ) ;
198
198
expect ( rollup . getOutputDest ) . toHaveBeenCalledWith ( context , config ) ;
199
- expect ( result ) . toEqual ( returnValue , `Expected result ${ result } to equal ${ returnValue } ` ) ;
199
+ expect ( result ) . toEqual ( returnValue ) ;
200
200
} ) ;
201
201
202
202
it ( 'should get the value from webpack' , ( ) => {
@@ -209,7 +209,7 @@ describe('bundle task', () => {
209
209
210
210
// assert
211
211
expect ( webpack . getOutputDest ) . toHaveBeenCalledWith ( context ) ;
212
- expect ( result ) . toEqual ( returnValue , `Expected result ${ result } to equal ${ returnValue } ` ) ;
212
+ expect ( result ) . toEqual ( returnValue ) ;
213
213
} ) ;
214
214
} ) ;
215
215
} ) ;
0 commit comments