require(__dirname).test({ xml: '', expect: [ ['opentagstart', {name: 'ROOT', attributes: {}}], ['attribute', {name: 'ATTRIB', value: 'attrib'}], ['opentag', {name: 'ROOT', attributes: {'ATTRIB': 'attrib'}, isSelfClosing: false}] ], opt: { trim: true } })