File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ test('it returns only user code frame when code frames from node_modules are fir
39
39
const userTrace = getUserCodeFrame ( stack )
40
40
41
41
expect ( userTrace ) . toMatchInlineSnapshot ( `
42
- " /sample-error/error-example.js:7:14
43
- 5 | document.createTextNode('Hello world')
44
- 6 | )
45
- > 7 | screen.debug()
46
- | ^
47
- "
48
- ` )
42
+ /sample-error/error-example.js:7:14
43
+ 5 | document.createTextNode('Hello world')
44
+ 6 | )
45
+ > 7 | screen.debug()
46
+ | ^
47
+
48
+ `)
49
49
} )
50
50
51
51
test ( 'it returns only user code frame when node code frames are present afterwards' , ( ) => {
@@ -59,13 +59,13 @@ test('it returns only user code frame when node code frames are present afterwar
59
59
const userTrace = getUserCodeFrame ( )
60
60
61
61
expect ( userTrace ) . toMatchInlineSnapshot ( `
62
- " /sample-error/error-example.js:7:14
63
- 5 | document.createTextNode('Hello world')
64
- 6 | )
65
- > 7 | screen.debug()
66
- | ^
67
- "
68
- ` )
62
+ /sample-error/error-example.js:7:14
63
+ 5 | document.createTextNode('Hello world')
64
+ 6 | )
65
+ > 7 | screen.debug()
66
+ | ^
67
+
68
+ `)
69
69
} )
70
70
71
71
test ( "it returns empty string if file from code frame can't be read" , ( ) => {
You can’t perform that action at this time.
0 commit comments