Block registry api
This commit is contained in:
@@ -65,7 +65,7 @@ export function setup(ctx: ServerContext) {
|
||||
await assertRejects(() => config_of({ copper_tools: { sped: 1 } }), Error, "sped");
|
||||
|
||||
Deno.writeTextFileSync(`${dir}/copper_tools/config.json`, config_file([16]));
|
||||
const errors = load_and_check(dir).find((mod) => mod.id === "copper_tools")!.report.errors;
|
||||
const errors = (await load_and_check(dir)).find((mod) => mod.id === "copper_tools")!.report.errors;
|
||||
assert(errors.some((error) => error.startsWith("config.json")), errors.join("\n"));
|
||||
|
||||
Deno.removeSync(dir, { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user