Skip to content

Commit

Permalink
Failing test for new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Girardi committed Dec 27, 2015
1 parent cc3b58e commit 0132b1d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,33 @@ tap.test('non-string types', function (assert) {
t.end();
});
});

tap.test('multiline string', function (assert) {
assert.plan(1);

var verify = function (output) {
assert.equal(output.toString('utf8'), [
'TAP version 13',
'# multiline strings',
'# a',
'# b',
'',
'1..0',
'# tests 0',
'# pass 0',
'',
'# ok',
''
].join('\n'));
};

var test = tape.createHarness();
test.createStream().pipe(concat(verify));
test('multiline strings', function (t) {
t.comment([
'a',
'b',
].join('\n'));
t.end();
});
});

0 comments on commit 0132b1d

Please sign in to comment.