mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 11:17:19 +00:00
Fix mockk error in matcher
This commit is contained in:
1 parent
5f49ec16a2
commit
b6086d57b8
1 file changed
+2
-1
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user