Region file format
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { copy_dir, test_game } from "./helpers.ts";
|
||||
import type { WorldSave } from "$/server/game/saves.ts";
|
||||
|
||||
// a mod that uses every part of the server api worth testing, and writes down what happened in its storage
|
||||
const SERVER_SCRIPT = `
|
||||
@@ -151,7 +152,7 @@ function test_mods() {
|
||||
return dir;
|
||||
}
|
||||
|
||||
async function setup(save?: string) {
|
||||
async function setup(save?: WorldSave) {
|
||||
const dir = test_mods();
|
||||
const game = await test_game(dir, save);
|
||||
game.join(1, "alice");
|
||||
|
||||
Reference in New Issue
Block a user