First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
21
node_modules/mpd-parser/test/parseAttributes.test.js
generated
vendored
Normal file
21
node_modules/mpd-parser/test/parseAttributes.test.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
import {JSDOM} from 'jsdom';
|
||||
import QUnit from 'qunit';
|
||||
import { parseAttributes } from '../src/parseAttributes';
|
||||
|
||||
const document = new JSDOM().window.document;
|
||||
|
||||
QUnit.module('parseAttributes');
|
||||
|
||||
QUnit.test('simple', function(assert) {
|
||||
const el = document.createElement('el');
|
||||
|
||||
el.setAttribute('foo', 1);
|
||||
|
||||
assert.deepEqual(parseAttributes(el), { foo: '1' });
|
||||
});
|
||||
|
||||
QUnit.test('empty', function(assert) {
|
||||
const el = document.createElement('el');
|
||||
|
||||
assert.deepEqual(parseAttributes(el), {});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue