summaryrefslogtreecommitdiff
path: root/cli/tests/bundle_im.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-07 12:32:09 +0200
committerGitHub <noreply@github.com>2020-04-07 12:32:09 +0200
commitdd3a94933a82975b0827e1c15d2c0d37d8c9c013 (patch)
tree2ccc94a73f088791785c7be08c03d8c65d1422ef /cli/tests/bundle_im.ts
parent47a580293eb5c176497264f1c3f108bf6b2c480d (diff)
feat: add --importmap flag to deno bundle (#4651)
Diffstat (limited to 'cli/tests/bundle_im.ts')
-rw-r--r--cli/tests/bundle_im.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/bundle_im.ts b/cli/tests/bundle_im.ts
new file mode 100644
index 000000000..b751aa689
--- /dev/null
+++ b/cli/tests/bundle_im.ts
@@ -0,0 +1,17 @@
+import { returnsFoo, printHello2 } from "mod2";
+
+export function returnsHi(): string {
+ return "Hi";
+}
+
+export function returnsFoo2(): string {
+ return returnsFoo();
+}
+
+export function printHello3(): void {
+ printHello2();
+}
+
+export function throwsError(): void {
+ throw Error("exception from mod1");
+}