Fix tests
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ Deno.test("bad biome json is reported", () => {
|
||||
assert(validate_biome({ ...PLAIN, colors: { grass: "green" } }).some((p) => p.startsWith("colors.grass")));
|
||||
// which kinds of tree there are is up to the trees feature, see tests/wood_test.ts
|
||||
assertEquals(validate_biome({ ...PLAIN, trees: { chance: 2, kinds: ["palm"] } }), [
|
||||
"trees.chance must be a number from 0 to 1",
|
||||
"trees.chance must be at most 1",
|
||||
]);
|
||||
assert(validate_biome({ ...PLAIN, trees: { chance: 1, kinds: [] } }).some((p) => p.startsWith("trees.kinds")));
|
||||
assert(validate_biome({ id: "my_mod:flat" }).some((p) => p.startsWith("surface")));
|
||||
|
||||
Reference in New Issue
Block a user