Recipe viewer

This commit is contained in:
2026-09-27 01:25:47 -03:00
parent e4c9a2f7f4
commit 7f4a8719de
12 changed files with 849 additions and 13 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ Deno.test("welcome lists what to download, and nothing happens until ready", asy
send(2, { type: "hello", name: "bob", protocol: PROTOCOL_VERSION });
const [welcome] = take(2);
assertEquals(welcome.type, "welcome");
assertEquals(welcome.mods.map((m: { id: string }) => m.id), ["bworld", "farmersdelight"]);
assertEquals(welcome.mods.map((m: { id: string }) => m.id), ["bworld", "farmersdelight", "recipe_viewer"]);
assert(welcome.mods.every((m: { sha256: string; file: string }) => m.sha256 && m.file));
assert(!("players" in welcome) && !("changes" in welcome), "welcome shouldn't have world state");