mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 00:38:18 +00:00
Fix mockk error in matcher
This commit is contained in:
@@ -32,11 +32,12 @@ class SpawnCommandTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `Spawns NPC at players position by default`() {
|
fun `Spawns NPC at players position by default`() {
|
||||||
|
player.position = Position(3, 3, 0)
|
||||||
world.commandDispatcher.dispatch(player, Command("spawn", arrayOf("1")))
|
world.commandDispatcher.dispatch(player, Command("spawn", arrayOf("1")))
|
||||||
|
|
||||||
verify {
|
verify {
|
||||||
world.register(match<Npc> {
|
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