Skip to content

Commit

Permalink
update the harness test for createStream
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 2, 2013
1 parent 9420e07 commit 5329dc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ var wanted =
'# fail 1',
'' ];

harness.stream.pipe(collector);
var stream = harness.createStream();
stream.pipe(collector);

test('correct output', function (t) {
harness.stream.on('end', function () {
stream.on('end', function () {
// accept trailing whitespace, or multiple lines on the same write(),
var found = collector.written.join('').split(/\n/).map(function (s) {
return s.replace(/\s+$/, '');
Expand Down

0 comments on commit 5329dc6

Please sign in to comment.