first commit
SAP-ERP Portal CI/CD / build (push) Failing after 5m20s

This commit is contained in:
John
2026-09-23 17:31:02 +05:30
commit 69b4e68baf
51657 changed files with 3864077 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
var XmlDocument = require('../').XmlDocument
var t = require('tap')
t.test('parsing comments outside XML scope [#27]', function (t) {
var xmlString = '<hello>world</hello>\n<!--Thank you for your business!-->';
var parsed = new XmlDocument(xmlString);
// verify that the trailing comment is ignored (no sensible place to put it)
t.equal(parsed.toString(), '<hello>world</hello>');
t.end();
})
t.test('validating escaping of &lt; &gt; [#29]', function (t) {
var xmlString = '<root><command>&lt; &gt;</command></root>';
var parsed = new XmlDocument(xmlString);
var result = parsed.toString({compressed:true})
t.equal(result, xmlString);
t.end();
})