1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/packages/fork-sax/test/trailing-attribute-no-value.js
2020-11-05 16:58:23 +00:00

10 lines
288 B
JavaScript

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