From 5fd2ea41118781700d9179eeee4e94dcf1fae45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Thu, 25 Jan 2018 14:47:02 +0100 Subject: [PATCH] update browser test --- test/hasClass/hasClass.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');