From 5a110dee6a2997859b91c6854e39489072662a5d Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 12 Oct 2020 15:29:49 -0600 Subject: [PATCH] Update src/__tests__/screen.js --- src/__tests__/screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/screen.js b/src/__tests__/screen.js index 81999db2..76aa51a1 100644 --- a/src/__tests__/screen.js +++ b/src/__tests__/screen.js @@ -33,7 +33,7 @@ test('logs Playground URL that are attached to document.body', () => { }) test('logs messsage when element is empty', () => { - screen.logTestingPlaygroundURL(render('').container) + screen.logTestingPlaygroundURL(document.createElement('div')) expect(console.log).toHaveBeenCalledTimes(1) expect(console.log.mock.calls[0][0]).toMatchInlineSnapshot( `"The provided element doesn't have any children."`,