1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/fork-sax/test/issue-47.js
2020-11-05 16:58:23 +00:00

12 lines
398 B
JavaScript

// https://github.com/isaacs/sax-js/issues/47
require(__dirname).test({
xml: '<a href="query.svc?x=1&y=2&z=3"/>',
expect: [
[ 'opentagstart', { name: 'A', attributes: {} } ],
[ 'attribute', { name: 'HREF', value: 'query.svc?x=1&y=2&z=3' } ],
[ 'opentag', { name: 'A', attributes: { HREF: 'query.svc?x=1&y=2&z=3' }, isSelfClosing: true } ],
[ 'closetag', 'A' ]
],
opt: {}
})