MCPcopy Index your code
hub / github.com/bytecodealliance/ComponentizeJS / test

Function test

test/builtins/console-object.js:51–59  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

49`;
50
51export async function test (run) {
52 const { stdout, stderr } = await run();
53 strictEqual(stdout, `{ a: { value: "a" }, b: { c: "d" }, e: ["f"], g: [{ g: "i" }], l: [ l () {
54
55 }], m: [Getter], n: [Getter], o: [ function () {
56
57 }], p: [ () => {}], q: 5, s: 29879287298374924, t: Set(3) { 1, 2, 3 }, u: Map(3) { 1 => 2, 3 => 4, [ function foo () {}] => {} }, v: Symbol.for("blah"), w: Symbol(), x: undefined, y: null, z: URL { hash: "", host: "site.com", hostname: "site.com", href: "https://site.com/x?a&b", origin: "https://site.com", password: "", pathname: "/x", port: "", protocol: "https:", search: "?a&b", searchParams: URLSearchParams { size: 2 }, username: "" }, zz: Uint8Array [1, 2, 3], zzz: Z {} }\n`);
58 strictEqual(stderr, '');
59}

Callers

nothing calls this directly

Calls 1

runFunction · 0.50

Tested by

no test coverage detected