Skip to content

Commit 2e3dd05

Browse files
committed
Fix option typo
Fixes #77
1 parent f1dbe11 commit 2e3dd05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function (pattern, options) {
1919
cb(!match);
2020
}, {
2121
objectMode: true,
22-
passthrough: options.passthough !== false,
22+
passthrough: options.passthrough !== false,
2323
restore: options.restore
2424
});
2525
};

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ describe('filter.restore', function () {
222222
streamFilter1.end();
223223
});
224224

225-
it('should end when not using the passthough option', function (cb) {
226-
var stream = filter('*.json', {restore: true, passthough: false});
225+
it('should end when not using the passthrough option', function (cb) {
226+
var stream = filter('*.json', {restore: true, passthrough: false});
227227
var restoreStream = stream.restore;
228228
var buffer = [];
229229

0 commit comments

Comments
 (0)