Skip to content

Commit

Permalink
Fix test for correctness.
Browse files Browse the repository at this point in the history
  • Loading branch information
vqvu committed Jul 9, 2016
1 parent 0e56761 commit 5ed1baf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,14 +578,13 @@ exports.constructor = {
var rs = streamify([1, 2, 3]);

var s = _(rs);
var rsPipeDest = getReadablePipeDest(s);
s.pull(valueEquals(test, 1));
s.destroy();

var rsPipeDest = getReadablePipeDest(s);
var write = sinon.spy(rsPipeDest, 'write');

s.emit('drain');

test.ok(!write.called, 'Drain should not cause write to be called.');
test.done();
},
Expand Down

0 comments on commit 5ed1baf

Please sign in to comment.