Improve commands
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ Deno.test("the server keeps the time, tells players, saves it, and /time changes
|
||||
assertEquals(game.world.time, CYCLE_TICKS + 100);
|
||||
send(1, { type: "chat", text: "/time set nope" });
|
||||
messages = take(1);
|
||||
assert(messages.at(-1).text.startsWith("Usage: /time"));
|
||||
assertEquals(messages.at(-1).text, `"nope" isn't one of day, noon, sunset, night, midnight`);
|
||||
|
||||
const loaded = await test_game("mods", game.save());
|
||||
assertEquals(loaded.game.world.time, CYCLE_TICKS + 100);
|
||||
|
||||
Reference in New Issue
Block a user