var test = require('tap').test; var xml = require('../../src/util/xml-escape'); test('escape', function (t) { var input = ''; var output = '<foo bar="he & llo '"></foo>'; t.strictEqual(xml(input), output); t.end(); });