File: //opt/big-agi/node_modules/html-tokenize/test/comment_comment.js
var fs = require('fs');
var tokenize = require('../');
var test = require('tape');
var through = require('through2');
var expected = require('./comment_comment/expected.json');
test('comment comment', function (t) {
t.plan(expected.length * 2);
fs.createReadStream(__dirname + '/comment_comment/index.html')
.pipe(tokenize())
.pipe(through.obj(function (row, enc, next) {
var exp = expected.shift();
t.equal(row[0], exp[0]);
t.equal(row[1].toString(), exp[1]);
next();
}))
;
});