Skip to content

Commit

Permalink
chore: self mutation (e2e-2of2.diff)
Browse files Browse the repository at this point in the history
Signed-off-by: monada-bot[bot] <[email protected]>
  • Loading branch information
monadabot committed Aug 30, 2024
1 parent 0f10058 commit ec07d22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class $Root extends $stdlib.std.Resource {
let $preflightTypesMap = {};
const lib = $helpers.bringJs(`${__dirname}/preflight.extendnonentrypoint-1.cjs`, $preflightTypesMap);
$helpers.nodeof(this).root.$preflightTypesMap = $preflightTypesMap;
const f = globalThis.$ClassFactory.new("rootpkg.Foo", lib.Foo, this, "Foo");
const f = globalThis.$ClassFactory.new("examples-valid.Foo", lib.Foo, this, "Foo");
}
}
const $APP = $PlatformManager.createApp({ outdir: $outdir, name: "bring_extend_non_entry.test", rootConstruct: $Root, isTestEnvironment: $wing_is_test, entrypointDir: process.env['WING_SOURCE_DIR'], rootId: process.env['WING_ROOT_ID'] });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,19 @@ class $Root extends $stdlib.std.Resource {
return `
require("${$helpers.normalPath(__dirname)}/inflight.$Closure2-3.cjs")({
$expect_Util: ${$stdlib.core.liftObject($stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("@winglang/sdk.expect.Util") ?? expect.Util, "@winglang/sdk/expect", "Util"))},
$file2_Q: ${$stdlib.core.liftObject($stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("rootpkg.subdir.Q") ?? file2.Q, "", "Q"))},
$file2_Q: ${$stdlib.core.liftObject($stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("examples-valid.subdir.Q") ?? file2.Q, "", "Q"))},
})
`;
}
get _liftMap() {
return ({
"handle": [
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("@winglang/sdk.expect.Util") ?? expect.Util, "@winglang/sdk/expect", "Util"), ["equal"]],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("rootpkg.subdir.Q") ?? file2.Q, "", "Q"), ["greet"]],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("examples-valid.subdir.Q") ?? file2.Q, "", "Q"), ["greet"]],
],
"$inflight_init": [
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("@winglang/sdk.expect.Util") ?? expect.Util, "@winglang/sdk/expect", "Util"), []],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("rootpkg.subdir.Q") ?? file2.Q, "", "Q"), []],
[$stdlib.core.toLiftableModuleType(globalThis.$ClassFactory.resolveType("examples-valid.subdir.Q") ?? file2.Q, "", "Q"), []],
],
});
}
Expand Down Expand Up @@ -405,8 +405,8 @@ class $Root extends $stdlib.std.Resource {
});
}
}
const store = globalThis.$ClassFactory.new("rootpkg.Store", file1.Store, this, "Store");
const q = globalThis.$ClassFactory.new("rootpkg.subdir.Q", file2.Q, this, "Q");
const store = globalThis.$ClassFactory.new("examples-valid.Store", file1.Store, this, "Store");
const q = globalThis.$ClassFactory.new("examples-valid.subdir.Q", file2.Q, this, "Q");
(expect.Util.equal((file2.Q.preflightGreet("foo")), "Hello foo"));
globalThis.$ClassFactory.new("@winglang/sdk.std.Test", std.Test, this, "test:add data to store", new $Closure1(this, "$Closure1"));
globalThis.$ClassFactory.new("@winglang/sdk.std.Test", std.Test, this, "test:greet", new $Closure2(this, "$Closure2"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ class $Root extends $stdlib.std.Resource {
const w = $helpers.bringJs(`${__dirname}/preflight.widget-1.cjs`, $preflightTypesMap);
const subdir = $helpers.bringJs(`${__dirname}/preflight.subdir2-6.cjs`, $preflightTypesMap);
$helpers.nodeof(this).root.$preflightTypesMap = $preflightTypesMap;
const widget1 = globalThis.$ClassFactory.new("rootpkg.subdir2.inner.Widget", w.Widget, this, "widget1");
const widget1 = globalThis.$ClassFactory.new("examples-valid.subdir2.inner.Widget", w.Widget, this, "widget1");
$helpers.assert($helpers.eq((widget1.compute()), 42), "widget1.compute() == 42");
const foo = globalThis.$ClassFactory.new("rootpkg.subdir2.Foo", subdir.Foo, this, "Foo");
const foo = globalThis.$ClassFactory.new("examples-valid.subdir2.Foo", subdir.Foo, this, "Foo");
$helpers.assert($helpers.eq((foo.foo()), "foo"), "foo.foo() == \"foo\"");
const bar = globalThis.$ClassFactory.new("rootpkg.subdir2.Bar", subdir.Bar, this, "Bar");
const bar = globalThis.$ClassFactory.new("examples-valid.subdir2.Bar", subdir.Bar, this, "Bar");
$helpers.assert($helpers.eq((bar.bar()), "bar"), "bar.bar() == \"bar\"");
const widget2 = globalThis.$ClassFactory.new("rootpkg.subdir2.inner.Widget", subdir.inner.Widget, this, "widget2");
const widget2 = globalThis.$ClassFactory.new("examples-valid.subdir2.inner.Widget", subdir.inner.Widget, this, "widget2");
$helpers.assert($helpers.eq((widget2.compute()), 42), "widget2.compute() == 42");
$helpers.assert($helpers.eq((foo.checkWidget(widget2)), 1379), "foo.checkWidget(widget2) == 1379");
}
Expand Down

0 comments on commit ec07d22

Please sign in to comment.