File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -38,33 +38,15 @@ test('prettyDOM supports truncating the output length', () => {
38
38
39
39
test ( 'prettyDOM defaults to document.body' , ( ) => {
40
40
const defaultInlineSnapshot = `
41
- " <body>
41
+ <body>
42
42
<div>
43
43
Hello World!
44
44
</div>
45
- </body>"
45
+ </body>
46
46
`
47
47
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 )
68
50
} )
69
51
70
52
test ( 'prettyDOM supports receiving the document element' , ( ) => {
You can’t perform that action at this time.
0 commit comments