@@ -165,7 +165,7 @@ describe('filter.restore', function () {
165
165
} ) ;
166
166
167
167
it ( 'should work when using multiple filters' , function ( cb ) {
168
- var streamFilter1 = filter ( [ '*.json' , '*. js'] , { restore : true } ) ;
168
+ var streamFilter1 = filter ( [ '*.js' ] , { restore : true } ) ;
169
169
var streamFilter2 = filter ( [ '*.json' ] , { restore : true } ) ;
170
170
var buffer = [ ] ;
171
171
@@ -251,10 +251,10 @@ describe('filter.restore', function () {
251
251
buffer . push ( file ) ;
252
252
253
253
if ( buffer . length === 4 ) {
254
- assert . equal ( buffer [ 0 ] . path , 'app.js ' ) ;
255
- assert . equal ( buffer [ 1 ] . path , 'app2 .js' ) ;
256
- assert . equal ( buffer [ 2 ] . path , 'package .json' ) ;
257
- assert . equal ( buffer [ 3 ] . path , 'package2.json ' ) ;
254
+ assert . equal ( buffer [ 0 ] . path , 'package.json ' ) ;
255
+ assert . equal ( buffer [ 1 ] . path , 'app .js' ) ;
256
+ assert . equal ( buffer [ 2 ] . path , 'package2 .json' ) ;
257
+ assert . equal ( buffer [ 3 ] . path , 'app2.js ' ) ;
258
258
cb ( ) ;
259
259
}
260
260
} ) ;
@@ -263,11 +263,11 @@ describe('filter.restore', function () {
263
263
done ( new Error ( 'Not expected to end!' ) ) ;
264
264
} ) ;
265
265
266
+ stream . pipe ( restoreStream ) ;
266
267
stream . write ( new gutil . File ( { path : 'package.json' } ) ) ;
267
268
stream . write ( new gutil . File ( { path : 'app.js' } ) ) ;
268
269
stream . write ( new gutil . File ( { path : 'package2.json' } ) ) ;
269
270
stream . write ( new gutil . File ( { path : 'app2.js' } ) ) ;
270
- stream . pipe ( restoreStream ) ;
271
271
} ) ;
272
272
273
273
it ( 'should work when restore stream is not used' , function ( cb ) {
0 commit comments