More fluid apis
This commit is contained in:
@@ -133,3 +133,11 @@ Deno.test("fluids are the same when their ids and data are, whatever order the d
|
||||
assertEquals(server, [true, true, false, false, false]);
|
||||
assertEquals(client, server);
|
||||
});
|
||||
|
||||
Deno.test("every fluid's id is listed once, without data, on the server and clients", async () => {
|
||||
const sides = await both_sides((fluids) => fluids.ids());
|
||||
for (const ids of [sides.server, sides.client] as string[][]) {
|
||||
assert(ids.includes("testfluids:syrup") && ids.includes("testfluids:tree_sap"), ids.join());
|
||||
assertEquals(new Set(ids).size, ids.length);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user