From ab898556a490d78d93e806ea3ee31147117102e3 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 23 Oct 2020 22:05:41 +1100 Subject: refactor(cli): move bundle check to new infrastructure (#8071) --- cli/tests/bundle.test.out | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) (limited to 'cli/tests/bundle.test.out') diff --git a/cli/tests/bundle.test.out b/cli/tests/bundle.test.out index eba439424..d90dc9f95 100644 --- a/cli/tests/bundle.test.out +++ b/cli/tests/bundle.test.out @@ -1,22 +1,23 @@ [WILDCARD] -let System, __instantiate; -(() => { -[WILDCARD] -})(); - -System.register("print_hello", [], function (exports_1, context_1) { -[WILDCARD] -}); -System.register("subdir2/mod2", ["print_hello"], function (exports_2, context_2) { -[WILDCARD] -}); -System.register("mod1", ["subdir2/mod2"], function (exports_3, context_3) { -[WILDCARD] -}); - -const __exp = __instantiate("mod1", false); -export const returnsHi = __exp["returnsHi"]; -export const returnsFoo2 = __exp["returnsFoo2"]; -export const printHello3 = __exp["printHello3"]; -export const throwsError = __exp["throwsError"]; -[WILDCARD] +function printHello() { + console.log("Hello"); +} +function returnsFoo() { + return "Foo"; +} +function printHello2() { + printHello(); +} +export function returnsHi() { + return "Hi"; +} +export function returnsFoo2() { + return returnsFoo(); +} +export function printHello3() { + printHello2(); +} +export function throwsError() { + throw Error("exception from mod1"); +} +[WILDCARD] \ No newline at end of file -- cgit v1.2.3