1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/fork-sax/test/not-string.js
2020-11-05 16:58:23 +00:00

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()