Validators using zod
This commit is contained in:
@@ -142,10 +142,10 @@ Deno.test("check-mods finds broken mods", async () => {
|
||||
has(report.errors, "block broken:x is also defined by broken, broken");
|
||||
has(report.errors, "items/bad.json: isn't valid json");
|
||||
has(report.errors, "model broken:no_such_model doesn't exist");
|
||||
has(report.errors, `"size=1" must be a state of this block`);
|
||||
has(report.errors, `variants["size=1"] names size, which isn't one of this block's states`);
|
||||
has(report.errors, "elements[0].from must be [x, y, z]");
|
||||
has(report.errors, `elements[0].faces: "up" isn't one of`);
|
||||
has(report.errors, `pattern uses "B" but key doesn't define it`);
|
||||
has(report.errors, `elements[0].faces can't have "up"`);
|
||||
has(report.errors, `key needs "B", which pattern uses`);
|
||||
has(report.errors, "textures/huge.png: is");
|
||||
has(report.errors, "scripts don't typecheck");
|
||||
has(report.errors, `depends on "missing_mod", which isn't installed`);
|
||||
|
||||
Reference in New Issue
Block a user