Block registry api
This commit is contained in:
@@ -49,10 +49,10 @@ Deno.test("an item with a model is drawn with it, in the model's own textures, p
|
||||
Deno.removeSync(dir, { recursive: true });
|
||||
});
|
||||
|
||||
Deno.test("check-mods reports an item's model that doesn't exist", () => {
|
||||
Deno.test("check-mods reports an item's model that doesn't exist", async () => {
|
||||
const dir = mods_with({ textures: { "0": "bworld:oak_planks" }, elements: [HANDLE] });
|
||||
Deno.removeSync(`${dir}/copper_tools/models/wrench.json`);
|
||||
const errors = load_and_check(dir).find((mod) => mod.id === "copper_tools")!.report.errors.join("\n");
|
||||
const errors = (await load_and_check(dir)).find((mod) => mod.id === "copper_tools")!.report.errors.join("\n");
|
||||
assert(errors.includes("model copper_tools:wrench doesn't exist"), errors);
|
||||
Deno.removeSync(dir, { recursive: true });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user