Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Aug 21, 2015
1 parent b92d8e9 commit 93d4c4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('filter.restore', function () {
});

it('should work when using multiple filters', function (cb) {
var streamFilter1 = filter(['*.json', '*.js'], {restore: true});
var streamFilter1 = filter(['*.js'], {restore: true});
var streamFilter2 = filter(['*.json'], {restore: true});
var buffer = [];

Expand Down Expand Up @@ -251,10 +251,10 @@ describe('filter.restore', function () {
buffer.push(file);

if (buffer.length === 4) {
assert.equal(buffer[0].path, 'app.js');
assert.equal(buffer[1].path, 'app2.js');
assert.equal(buffer[2].path, 'package.json');
assert.equal(buffer[3].path, 'package2.json');
assert.equal(buffer[0].path, 'package.json');
assert.equal(buffer[1].path, 'app.js');
assert.equal(buffer[2].path, 'package2.json');
assert.equal(buffer[3].path, 'app2.js');
cb();
}
});
Expand All @@ -263,11 +263,11 @@ describe('filter.restore', function () {
done(new Error('Not expected to end!'));
});

stream.pipe(restoreStream);
stream.write(new gutil.File({path: 'package.json'}));
stream.write(new gutil.File({path: 'app.js'}));
stream.write(new gutil.File({path: 'package2.json'}));
stream.write(new gutil.File({path: 'app2.js'}));
stream.pipe(restoreStream);
});

it('should work when restore stream is not used', function (cb) {
Expand Down

0 comments on commit 93d4c4b

Please sign in to comment.