Block registry api
This commit is contained in:
@@ -173,7 +173,7 @@ Deno.test("a client mod hooks LocalPlayer from its .cubi", async () => {
|
||||
}`,
|
||||
],
|
||||
});
|
||||
const mod = load_and_check(dir)[0];
|
||||
const mod = (await load_and_check(dir))[0];
|
||||
assertEquals(mod.report.errors, []);
|
||||
const packed = read_mod(await pack_mod(mod), "floaty.cubi");
|
||||
const listing: ModListing = {
|
||||
@@ -344,7 +344,7 @@ Deno.test("cubi/engine without engine_access is an error in check-mods and in a
|
||||
console.log(engine.common.physics);
|
||||
}`;
|
||||
write_mod(dir, "sneaky", { server: ["server.ts", script] }, {});
|
||||
const [mod] = load_and_check(dir);
|
||||
const [mod] = await load_and_check(dir);
|
||||
assertEquals(mod.report.errors, [
|
||||
`scripts/server.ts imports cubi/engine, which needs "engine_access": true in manifest.json`,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user