Validators using zod
This commit is contained in:
@@ -34,8 +34,8 @@ Deno.test("a model gets its parent's display transform for each place it doesn't
|
||||
assertEquals(models[1].display, { gui: { scale: [2, 2, 2] }, ground: { scale: [0.25, 0.25, 0.25] } });
|
||||
assertEquals(validate_model({ id: "a:base", display: models[1].display }), []);
|
||||
assertEquals(validate_model({ id: "a:base", display: { head: {}, gui: { scale: 2 } } }), [
|
||||
'display: "head" isn\'t one of gui, firstperson_righthand, ground, fixed',
|
||||
"display.gui.scale must be [x, y, z]",
|
||||
'display can\'t have "head"',
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user