require(__dirname).test({ xml: 'Welcome, to monkey land', expect: [ ['opentagstart', { 'name': 'SPAN', 'attributes': {} }], ['opentag', { 'name': 'SPAN', 'attributes': {}, isSelfClosing: false }], ['text', 'Welcome,'], ['closetag', 'SPAN'], ['text', ' to monkey land'], ['end'], ['ready'] ], strict: false, opt: {} })