Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

failing test for  

  • Loading branch information...
commit 2db61b306f10eb5ccd9f139b16a5e26f8a0971dc 1 parent 1a15db4
@substack authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/nbsp.js
View
20 test/nbsp.js
@@ -0,0 +1,20 @@
+var trumpet = require('../');
+var fs = require('fs');
+var test = require('tape');
+var concat = require('concat-stream');
+
+var html = 'Category:&nbsp;&nbsp;&nbsp;<select></select>';
+var expected = 'Category:&nbsp;&nbsp;&nbsp;<select id="xyz"></select>';
+
+test('&nbsp;', function (t) {
+ t.plan(1);
+
+ var tr = trumpet();
+ var elem = tr.select('select');
+ elem.setAttribute('id', 'xyz');
+
+ tr.pipe(concat(function (src) {
+ t.equal(String(src), expected);
+ }));
+ tr.end(html);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.