@@ -70,8 +70,8 @@ test.cb("should output files to cache directory", t => {
7070
7171 webpack ( config , ( err , stats ) => {
7272 t . is ( err , null ) ;
73- t . is ( stats . compilation . errors . length , 0 ) ;
74- t . is ( stats . compilation . warnings . length , 0 ) ;
73+ t . deepEqual ( stats . compilation . errors , [ ] ) ;
74+ t . deepEqual ( stats . compilation . warnings , [ ] ) ;
7575
7676 fs . readdir ( t . context . cacheDirectory , ( err , files ) => {
7777 t . is ( err , null ) ;
@@ -105,8 +105,8 @@ test.serial.cb(
105105
106106 webpack ( config , ( err , stats ) => {
107107 t . is ( err , null ) ;
108- t . is ( stats . compilation . errors . length , 0 ) ;
109- t . is ( stats . compilation . warnings . length , 0 ) ;
108+ t . deepEqual ( stats . compilation . errors , [ ] ) ;
109+ t . deepEqual ( stats . compilation . warnings , [ ] ) ;
110110
111111 fs . readdir ( defaultCacheDir , ( err , files ) => {
112112 files = files . filter ( file => / \b [ 0 - 9 a - f ] { 5 , 40 } \. j s o n \. g z \b / . test ( file ) ) ;
@@ -176,8 +176,8 @@ test.serial.cb(
176176
177177 webpack ( config , ( err , stats ) => {
178178 t . is ( err , null ) ;
179- t . is ( stats . compilation . errors . length , 0 ) ;
180- t . is ( stats . compilation . warnings . length , 0 ) ;
179+ t . deepEqual ( stats . compilation . errors , [ ] ) ;
180+ t . deepEqual ( stats . compilation . warnings , [ ] ) ;
181181
182182 fs . readdir ( defaultCacheDir , ( err , files ) => {
183183 files = files . filter ( file => / \b [ 0 - 9 a - f ] { 5 , 40 } \. j s o n \. g z \b / . test ( file ) ) ;
@@ -215,8 +215,8 @@ test.cb("should read from cache directory if cached file exists", t => {
215215 // Istanbul for coverage.
216216 webpack ( config , ( err , stats ) => {
217217 t . is ( err , null ) ;
218- t . is ( stats . compilation . errors . length , 0 ) ;
219- t . is ( stats . compilation . warnings . length , 0 ) ;
218+ t . deepEqual ( stats . compilation . errors , [ ] ) ;
219+ t . deepEqual ( stats . compilation . warnings , [ ] ) ;
220220
221221 webpack ( config , err => {
222222 t . is ( err , null ) ;
@@ -251,8 +251,8 @@ test.cb("should have one file per module", t => {
251251
252252 webpack ( config , ( err , stats ) => {
253253 t . is ( err , null ) ;
254- t . is ( stats . compilation . errors . length , 0 ) ;
255- t . is ( stats . compilation . warnings . length , 0 ) ;
254+ t . deepEqual ( stats . compilation . errors , [ ] ) ;
255+ t . deepEqual ( stats . compilation . warnings , [ ] ) ;
256256
257257 fs . readdir ( t . context . cacheDirectory , ( err , files ) => {
258258 t . is ( err , null ) ;
@@ -308,8 +308,8 @@ test.cb("should generate a new file if the identifier changes", t => {
308308 configs . forEach ( config => {
309309 webpack ( config , ( err , stats ) => {
310310 t . is ( err , null ) ;
311- t . is ( stats . compilation . errors . length , 0 ) ;
312- t . is ( stats . compilation . warnings . length , 0 ) ;
311+ t . deepEqual ( stats . compilation . errors , [ ] ) ;
312+ t . deepEqual ( stats . compilation . warnings , [ ] ) ;
313313 counter -= 1 ;
314314
315315 if ( ! counter ) {
@@ -369,10 +369,10 @@ test.cb("should allow to specify the .babelrc file", t => {
369369
370370 webpack ( config , ( err , multiStats ) => {
371371 t . is ( err , null ) ;
372- t . is ( multiStats . stats [ 0 ] . compilation . errors . length , 0 ) ;
373- t . is ( multiStats . stats [ 0 ] . compilation . warnings . length , 0 ) ;
374- t . is ( multiStats . stats [ 1 ] . compilation . errors . length , 0 ) ;
375- t . is ( multiStats . stats [ 1 ] . compilation . warnings . length , 0 ) ;
372+ t . deepEqual ( multiStats . stats [ 0 ] . compilation . errors , [ ] ) ;
373+ t . deepEqual ( multiStats . stats [ 0 ] . compilation . warnings , [ ] ) ;
374+ t . deepEqual ( multiStats . stats [ 1 ] . compilation . errors , [ ] ) ;
375+ t . deepEqual ( multiStats . stats [ 1 ] . compilation . warnings , [ ] ) ;
376376
377377 fs . readdir ( t . context . cacheDirectory , ( err , files ) => {
378378 t . is ( err , null ) ;
0 commit comments