diff options
Diffstat (limited to 'tests/specs/eval/check_local_by_default2')
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/eval/check_local_by_default2/__test__.jsonc b/tests/specs/eval/check_local_by_default2/__test__.jsonc new file mode 100644 index 000000000..b6188b8ce --- /dev/null +++ b/tests/specs/eval/check_local_by_default2/__test__.jsonc @@ -0,0 +1,4 @@ +{ + "args": "eval --quiet import('./check_local_by_default2.ts').then(console.log);", + "output": "main.out" +} diff --git a/tests/specs/eval/check_local_by_default2/check_local_by_default2.ts b/tests/specs/eval/check_local_by_default2/check_local_by_default2.ts new file mode 100644 index 000000000..5177ff944 --- /dev/null +++ b/tests/specs/eval/check_local_by_default2/check_local_by_default2.ts @@ -0,0 +1,6 @@ +import * as a from "http://localhost:4545/subdir/type_error.ts"; + +const b: "b" = 12; + +console.log(a.a); +console.log(b); diff --git a/tests/specs/eval/check_local_by_default2/main.out b/tests/specs/eval/check_local_by_default2/main.out new file mode 100644 index 000000000..26a1fe6f8 --- /dev/null +++ b/tests/specs/eval/check_local_by_default2/main.out @@ -0,0 +1,3 @@ +12 +12 +[Module: null prototype] { } |
