1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
joplin/packages/fork-sax/test/trailing-attribute-no-value.js

10 lines
288 B
JavaScript
Raw Normal View History

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