Permalink
Browse files

an extra comment test just to make sure

  • Loading branch information...
1 parent 242fbd8 commit 5adc2f3c89ca5021d3b706782dad954405e80d3b @substack committed Jul 30, 2013
Showing with 22 additions and 1 deletion.
  1. +22 −1 test/comment.js
View
@@ -3,7 +3,7 @@ var through = require('through');
var test = require('tape');
var concat = require('concat-stream');
-test('write stream', function (t) {
+test('comment write stream', function (t) {
t.plan(1);
var tr = trumpet();
@@ -23,3 +23,24 @@ test('write stream', function (t) {
}));
tr.end(res);
});
+
+test('comment write stream variant', function (t) {
+ t.plan(1);
+
+ var tr = trumpet();
+ var html = tr.select('html');
+ var ws = html.createWriteStream();
+
+ var s = through();
+ s.pipe(ws);
+ s.end();
+
+ var res = '<!--test --><html></html>';
+ tr.pipe(concat(function (body) {
+ t.equal(
+ body.toString(),
+ res
+ );
+ }));
+ tr.end(res);
+});

0 comments on commit 5adc2f3

Please sign in to comment.