mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
9 lines
296 B
JavaScript
9 lines
296 B
JavaScript
var test = require('tap').test;
|
|
var xml = require('../../src/util/xml-escape');
|
|
|
|
test('escape', function (t) {
|
|
var input = '<foo bar="he & llo \'"></foo>';
|
|
var output = '<foo bar="he & llo '"></foo>';
|
|
t.strictEqual(xml(input), output);
|
|
t.end();
|
|
});
|