Skip to content

Commit

Permalink
test: update snapshots for amaro v0.3.2
Browse files Browse the repository at this point in the history
PR-URL: #56916
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
  • Loading branch information
marco-ippolito authored and nodejs-github-bot committed Feb 7, 2025
1 parent 6fd0d0c commit 048a17a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
16 changes: 13 additions & 3 deletions test/fixtures/eval/eval_typescript.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Node.js *
[eval]:1
const foo;
^^^
x 'const' declarations must be initialized
,----
1 | const foo;
: ^^^
`----

SyntaxError: Missing initializer in const declaration

Expand All @@ -28,10 +33,15 @@ Node.js *
undefined
false
[eval]:1
;const foo;
^^^
interface Foo{};const foo;
^^^
x 'const' declarations must be initialized
,----
1 | interface Foo{};const foo;
: ^^^
`----

SyntaxError: Missing initializer in const declaration
SyntaxError: Unexpected identifier 'Foo'

Node.js *
[eval]:1
Expand Down
32 changes: 26 additions & 6 deletions test/fixtures/eval/stdin_typescript.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,23 @@ Node.js *
[stdin]:1
const foo;
^^^
x 'const' declarations must be initialized
,----
1 | const foo;
: ^^^
`----

SyntaxError: Missing initializer in const declaration

Node.js *
[stdin]:1
const foo;
^^^
x 'const' declarations must be initialized
,----
1 | const foo;
: ^^^
`----

SyntaxError: Missing initializer in const declaration

Expand All @@ -57,17 +67,27 @@ undefined
false
false
[stdin]:1
;const foo;
^^^
interface Foo{};const foo;
^^^
x 'const' declarations must be initialized
,----
1 | interface Foo{};const foo;
: ^^^
`----

SyntaxError: Missing initializer in const declaration
SyntaxError: Unexpected identifier 'Foo'

Node.js *
[stdin]:1
;const foo;
^^^
interface Foo{};const foo;
^^^^^^^^^
x 'const' declarations must be initialized
,----
1 | interface Foo{};const foo;
: ^^^
`----

SyntaxError: Missing initializer in const declaration
SyntaxError: Unexpected strict mode reserved word

Node.js *
[stdin]:1
Expand Down

0 comments on commit 048a17a

Please sign in to comment.