Skip to content

Commit 2bb83fd

Browse files
vados-cosmoniccalvinrp
authored andcommitted
fix(tests): guest-types test
Signed-off-by: Victor Adossi <[email protected]>
1 parent 9a2014c commit 2bb83fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export async function cliTest(_fixtures) {
254254
const source = await readFile(`${outDir}/flavorful.d.ts`, "utf8");
255255
ok(source.includes("export const test"));
256256
const iface = await readFile(`${outDir}/interfaces/test-flavorful-test.d.ts`, "utf8");
257-
ok(iface.includes("export namespace TestFlavorfulTest {"));
257+
ok(source.includes("declare module 'test:flavorful/test' {"));
258258
});
259259

260260
test("Type generation (specific features)", async () => {
@@ -337,7 +337,7 @@ export async function cliTest(_fixtures) {
337337
strictEqual(stderr, "");
338338
const source = await readFile(`${outDir}/interfaces/test-flavorful-test.d.ts`, "utf8");
339339
// NOTE: generation of guest types *no longer* produces an explicitly exported module
340-
// but rather contains an typescript ambient module (w/ opt-in for producing explicit
340+
// but rather contains an typescript ambient module (w/ opt-in for producing explicit
341341
// module declarations if necessary)
342342
//
343343
// see: https://github.com/bytecodealliance/jco/pull/528

0 commit comments

Comments
 (0)