import * as libxml from "../index";
module.exports.text = function (assert: any) {
var doc = libxml.parseXml('child');
assert.equal("text", doc.child(0)?.type());
assert.equal("text", doc.child(0)?.name());
assert.done();
};
module.exports.comment = function (assert: any) {
var doc = libxml.parseXml('' + "");
assert.equal("comment", doc.child(0)?.type());
assert.equal("comment", doc.child(0)?.name());
assert.done();
};
module.exports.cdata = function (assert: any) {
var doc = libxml.parseXml('' + "");
assert.equal("cdata", doc.child(0)?.type());
assert.equal("cdata", doc.child(0)?.name());
assert.done();
};