mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-12 08:54:00 +02:00
9 lines
240 B
JavaScript
9 lines
240 B
JavaScript
|
var parser = require('../').parser(true)
|
||
|
var t = require('tap')
|
||
|
t.plan(1)
|
||
|
parser.onopentag = function (node) {
|
||
|
t.same(node, { name: 'x', attributes: {}, isSelfClosing: false })
|
||
|
}
|
||
|
var xml = new Buffer('<x>y</x>')
|
||
|
parser.write(xml).close()
|