Skip to content

Commit

Permalink
[Tests] add test case for #519 for test.comment() in createStream/obj…
Browse files Browse the repository at this point in the history
…ectMode context
  • Loading branch information
DavidAnson authored and ljharb committed May 22, 2020
1 parent ce9a282 commit 40ec79a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/comment.js
Expand Up @@ -175,3 +175,18 @@ tap.test('multiline string', function (assert) {
t.end();
});
});

tap.test('comment with createStream/objectMode', function (assert) {
assert.plan(1);

var test = tape.createHarness();
test.createStream({ objectMode: true }).on('data', function (row) {
if (typeof row === 'string') {
assert.equal(row, 'comment message');
}
});
test('t.comment', function (t) {
t.comment('comment message');
t.end();
});
});

0 comments on commit 40ec79a

Please sign in to comment.