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