Remove silly tests that need constant changing
This commit is contained in:
@@ -24,17 +24,13 @@ const inventory_of = (messages: Msg[]) =>
|
||||
|
||||
Deno.test("the base game loads from mods/bworld", async () => {
|
||||
const { game } = await test_game("mods");
|
||||
const bworld = (entries: [string, unknown][]) => entries.filter(([id]) => id.startsWith("bworld:")).length;
|
||||
// 7 kinds of log, planks and leaves
|
||||
assertEquals(bworld(EverythingRegistry.entries("blocks")), 42);
|
||||
// 42 items (25 of them tools) plus the item forms of the 37 blocks that have one
|
||||
assertEquals(bworld(EverythingRegistry.entries("items")), 80);
|
||||
// bworld's 18 (4 wood tools, the wood watering can, 7 planks, the fishing rod, the smithing table), the cooking pot,
|
||||
// stove, cutting board and wood knife are farmersdelight's
|
||||
assertEquals(game.recipes.shaped.length, 22);
|
||||
// every log and fish smelts, every log burns, and so do sand into glass and cobblestone into stone
|
||||
assertEquals(game.recipes.furnace.size, 16);
|
||||
assertEquals(game.recipes.fuel.size, 8);
|
||||
// a block, its item form, an item, and each kind of recipe
|
||||
assert(EverythingRegistry.get<BlockRegistry>("blocks", "bworld:stone"));
|
||||
assert(EverythingRegistry.get<ItemRegistry>("items", "bworld:stone"));
|
||||
assert(EverythingRegistry.get<ItemRegistry>("items", "bworld:coal"));
|
||||
assert(game.recipes.shaped.some((recipe) => recipe.result.id === "bworld:planks"));
|
||||
assert(game.recipes.furnace.has("bworld:iron_ore"));
|
||||
assert(game.recipes.fuel.has("bworld:coal"));
|
||||
assertEquals(EverythingRegistry.get<BlockRegistry>("blocks", "bworld:water")?.replaceable, true);
|
||||
// still has its code until it's a component
|
||||
assert(EverythingRegistry.get<ItemRegistry>("items", "bworld:copper_watering_can")?.on_create);
|
||||
|
||||
Reference in New Issue
Block a user