require(__dirname).test({
xml: '<root>',
expect: [
[
'opentagstart',
{
name: 'root',
attributes: {}
}
],
'opentag',
attributes: {},
isSelfClosing: false
'error',
'Unclosed root tag\nLine: 0\nColumn: 6\nChar: '
]
strict: true,
opt: {}
})