summaryrefslogtreecommitdiff
path: root/cli/tests/lib_runtime_api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/lib_runtime_api.ts')
-rw-r--r--cli/tests/lib_runtime_api.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/lib_runtime_api.ts b/cli/tests/lib_runtime_api.ts
new file mode 100644
index 000000000..848b523a1
--- /dev/null
+++ b/cli/tests/lib_runtime_api.ts
@@ -0,0 +1,12 @@
+const [errors, program] = await Deno.compile(
+ "main.ts",
+ {
+ "main.ts": `document.getElementById("foo");`
+ },
+ {
+ lib: ["dom", "esnext"]
+ }
+);
+
+console.log(errors);
+console.log(Object.keys(program));