Skip to content

Commit 2057c83

Browse files
author
Rayat Rahman
committed
chore(types): convert events.js -> events.ts
1 parent 78b18d0 commit 2057c83

File tree

5 files changed

+376
-166
lines changed

5 files changed

+376
-166
lines changed

src/__tests__/get-user-code-frame.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ test('it returns only user code frame when code frames from node_modules are fir
3939
const userTrace = getUserCodeFrame(stack)
4040

4141
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+
`)
4949
})
5050

5151
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
5959
const userTrace = getUserCodeFrame()
6060

6161
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+
`)
6969
})
7070

7171
test("it returns empty string if file from code frame can't be read", () => {

src/events.js

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)