Skip to content

Commit 98b8bb3

Browse files
committed
fixup! Update snapshot tests
1 parent 8debfaf commit 98b8bb3

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

src/__tests__/pretty-dom.js

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,33 +38,15 @@ test('prettyDOM supports truncating the output length', () => {
3838

3939
test('prettyDOM defaults to document.body', () => {
4040
const defaultInlineSnapshot = `
41-
"<body>
41+
<body>
4242
<div>
4343
Hello World!
4444
</div>
45-
</body>"
45+
</body>
4646
`
4747
renderIntoDocument('<div>Hello World!</div>')
48-
expect(prettyDOM()).toMatchInlineSnapshot(
49-
defaultInlineSnapshot,
50-
`
51-
<body>
52-
<div>
53-
Hello World!
54-
</div>
55-
</body>
56-
`,
57-
)
58-
expect(prettyDOM(null)).toMatchInlineSnapshot(
59-
defaultInlineSnapshot,
60-
`
61-
<body>
62-
<div>
63-
Hello World!
64-
</div>
65-
</body>
66-
`,
67-
)
48+
expect(prettyDOM()).toMatchInlineSnapshot(defaultInlineSnapshot)
49+
expect(prettyDOM(null)).toMatchInlineSnapshot(defaultInlineSnapshot)
6850
})
6951

7052
test('prettyDOM supports receiving the document element', () => {

0 commit comments

Comments
 (0)