Fix mockk error in matcher

This commit is contained in:
Gary Tierney
2018-09-04 04:00:28 +01:00
parent 5f49ec16a2
commit b6086d57b8
+2 -1
View File
@@ -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<Npc> {
it.id == 1 && it.position == player.position
it.id == 1 && it.position == Position(3, 3,0)
})
}
}