Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 0a77d6c

Browse files
author
george
committed
update utils tests
1 parent 2dbc27c commit 0a77d6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/__tests__/utils.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ describe("dom", () => {
8888
// Given
8989
document.body.innerHTML = testDom
9090
const element = document.querySelector(".hello.world")
91-
const classNameToDetect1 = "hello"
92-
const classNameToDetect2 = "not-in-class-list"
91+
const classNameToDetect1 = "not-in-class-list"
92+
const classNameToDetect2 = "not-in-class-list-either"
9393
// When
9494
const received = dom.hasClass(element, classNameToDetect1, classNameToDetect2)
9595
// Then
96-
expect(received).toEqual(true)
96+
expect(received).toEqual(false)
9797
})
9898

9999
it("returns true if class can be found among given classes", () => {

0 commit comments

Comments
 (0)