From b6086d57b8e9a1b516ea8d7138ca228ff19a71e3 Mon Sep 17 00:00:00 2001 From: Gary Tierney Date: Tue, 4 Sep 2018 04:00:28 +0100 Subject: [PATCH] Fix mockk error in matcher --- game/plugin/cmd/test/SpawnCommandTests.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/plugin/cmd/test/SpawnCommandTests.kt b/game/plugin/cmd/test/SpawnCommandTests.kt index f7f0726d..ef9a3d60 100644 --- a/game/plugin/cmd/test/SpawnCommandTests.kt +++ b/game/plugin/cmd/test/SpawnCommandTests.kt @@ -32,11 +32,12 @@ class SpawnCommandTests { @Test fun `Spawns NPC at players position by default`() { + player.position = Position(3, 3, 0) world.commandDispatcher.dispatch(player, Command("spawn", arrayOf("1"))) verify { world.register(match { - it.id == 1 && it.position == player.position + it.id == 1 && it.position == Position(3, 3,0) }) } }