diff --git a/tests/PlayerImpl.test.ts b/tests/PlayerImpl.test.ts index 7f47a1cd2..d247af9be 100644 --- a/tests/PlayerImpl.test.ts +++ b/tests/PlayerImpl.test.ts @@ -6,6 +6,7 @@ import { UnitType, } from "../src/core/game/Game"; import { setup } from "./util/Setup"; +import { SpawnExecution } from "../src/core/execution/SpawnExecution"; let game: Game; let player: Player; @@ -24,6 +25,12 @@ describe("PlayerImpl", () => { ], ); + // Add spawn executions to give players territory + game.addExecution( + new SpawnExecution(game.player("player_id").info(), game.ref(0, 0)), + new SpawnExecution(game.player("other_id").info(), game.ref(20, 20)), + ); + while (game.inSpawnPhase()) { game.executeNextTick(); }