Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a473d3f

Browse filesBrowse files
marco-ippolitotargos
authored andcommitted
test: update snapshots for amaro v0.3.2
PR-URL: #56916 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
1 parent 7353266 commit a473d3f
Copy full SHA for a473d3f

File tree

Expand file treeCollapse file tree

2 files changed

+39
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+39
-9
lines changed
Open diff view settings
Collapse file

‎test/fixtures/eval/eval_typescript.snapshot‎

Copy file name to clipboardExpand all lines: test/fixtures/eval/eval_typescript.snapshot
+13-3Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Node.js *
2020
[eval]:1
2121
const foo;
2222
^^^
23+
x 'const' declarations must be initialized
24+
,----
25+
1 | const foo;
26+
: ^^^
27+
`----
2328

2429
SyntaxError: Missing initializer in const declaration
2530

@@ -28,10 +33,15 @@ Node.js *
2833
undefined
2934
false
3035
[eval]:1
31-
;const foo;
32-
^^^
36+
interface Foo{};const foo;
37+
^^^
38+
x 'const' declarations must be initialized
39+
,----
40+
1 | interface Foo{};const foo;
41+
: ^^^
42+
`----
3343

34-
SyntaxError: Missing initializer in const declaration
44+
SyntaxError: Unexpected identifier 'Foo'
3545

3646
Node.js *
3747
[eval]:1
Collapse file

‎test/fixtures/eval/stdin_typescript.snapshot‎

Copy file name to clipboardExpand all lines: test/fixtures/eval/stdin_typescript.snapshot
+26-6Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,23 @@ Node.js *
3939
[stdin]:1
4040
const foo;
4141
^^^
42+
x 'const' declarations must be initialized
43+
,----
44+
1 | const foo;
45+
: ^^^
46+
`----
4247

4348
SyntaxError: Missing initializer in const declaration
4449

4550
Node.js *
4651
[stdin]:1
4752
const foo;
4853
^^^
54+
x 'const' declarations must be initialized
55+
,----
56+
1 | const foo;
57+
: ^^^
58+
`----
4959

5060
SyntaxError: Missing initializer in const declaration
5161

@@ -57,17 +67,27 @@ undefined
5767
false
5868
false
5969
[stdin]:1
60-
;const foo;
61-
^^^
70+
interface Foo{};const foo;
71+
^^^
72+
x 'const' declarations must be initialized
73+
,----
74+
1 | interface Foo{};const foo;
75+
: ^^^
76+
`----
6277

63-
SyntaxError: Missing initializer in const declaration
78+
SyntaxError: Unexpected identifier 'Foo'
6479

6580
Node.js *
6681
[stdin]:1
67-
;const foo;
68-
^^^
82+
interface Foo{};const foo;
83+
^^^^^^^^^
84+
x 'const' declarations must be initialized
85+
,----
86+
1 | interface Foo{};const foo;
87+
: ^^^
88+
`----
6989

70-
SyntaxError: Missing initializer in const declaration
90+
SyntaxError: Unexpected strict mode reserved word
7191

7292
Node.js *
7393
[stdin]:1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.