update browser test
This commit is contained in:
@ -9,9 +9,9 @@ test('Testing hasClass', (t) => {
|
|||||||
t.true(typeof hasClass === 'function', 'hasClass is a Function');
|
t.true(typeof hasClass === 'function', 'hasClass is a Function');
|
||||||
const className = 'container'
|
const className = 'container'
|
||||||
const dom = new JSDOM(`
|
const dom = new JSDOM(`
|
||||||
<p class="container">Some text</p>
|
<p class="${className}">Some text</p>
|
||||||
`);
|
`);
|
||||||
t.true(hasClass(dom.window.document.querySelector('p'), 'container'), 'element has the specified class');
|
t.true(hasClass(dom.window.document.querySelector('p'), className), 'element has the specified class');
|
||||||
//t.deepEqual(hasClass(args..), 'Expected');
|
//t.deepEqual(hasClass(args..), 'Expected');
|
||||||
//t.equal(hasClass(args..), 'Expected');
|
//t.equal(hasClass(args..), 'Expected');
|
||||||
//t.false(hasClass(args..), 'Expected');
|
//t.false(hasClass(args..), 'Expected');
|
||||||
|
|||||||
Reference in New Issue
Block a user