Skip to content

Commit c8d29c6

Browse files
smacpherson64gnapse
authored andcommitted
test: Updated toBeInTheDocument (#44)
The toBeInTheDocument was using the wrong selector like the README. Resetting it to check on the actual svg element.
1 parent 1fcbae3 commit c8d29c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/to-be-in-the-document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test('.toBeInTheDocument', () => {
44
<svg data-testid="svg-element"></svg>`
55

66
const htmlElement = document.querySelector('[data-testid="html-element"]')
7-
const svgElement = document.querySelector('[data-testid="html-element"]')
7+
const svgElement = document.querySelector('[data-testid="svg-element"]')
88
const detachedElement = document.createElement('div')
99
const fakeElement = {thisIsNot: 'an html element'}
1010
const undefinedElement = undefined

0 commit comments

Comments
 (0)