Skip to content

Commit d773f84

Browse files
committed
Merge branch 'feat/playground-url' of github.com:balavishnuvj/dom-testing-library into feat/playground-url
2 parents 479c8d0 + 5a110de commit d773f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/screen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test('logs Playground URL that are attached to document.body', () => {
3333
})
3434

3535
test('logs messsage when element is empty', () => {
36-
screen.logTestingPlaygroundURL(render('').container)
36+
screen.logTestingPlaygroundURL(document.createElement('div'))
3737
expect(console.log).toHaveBeenCalledTimes(1)
3838
expect(console.log.mock.calls[0][0]).toMatchInlineSnapshot(
3939
`"The provided element doesn't have any children."`,

0 commit comments

Comments
 (0)