diff --git a/test/hasClass/hasClass.test.js b/test/hasClass/hasClass.test.js index 9762db0fe..944445e7b 100644 --- a/test/hasClass/hasClass.test.js +++ b/test/hasClass/hasClass.test.js @@ -9,9 +9,9 @@ test('Testing hasClass', (t) => { t.true(typeof hasClass === 'function', 'hasClass is a Function'); const className = 'container' const dom = new JSDOM(` -
Some text
+Some text
`); - 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.equal(hasClass(args..), 'Expected'); //t.false(hasClass(args..), 'Expected');