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

9 lines
240 B
JavaScript
Raw Normal View History

2020-11-05 18:58:23 +02:00
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()