From 6946a09e07db7cfb88720bc1671cdd28331ad226 Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Wed, 23 Mar 2022 20:40:28 +0100 Subject: [PATCH] test: fixed tests --- test/game/components/spaceship_test.dart | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/test/game/components/spaceship_test.dart b/test/game/components/spaceship_test.dart index c7eb24b2..92517e9f 100644 --- a/test/game/components/spaceship_test.dart +++ b/test/game/components/spaceship_test.dart @@ -42,17 +42,7 @@ void main() { MockContact(), ); - verify(() => ball.priority = 3).called(1); - }); - - test('re order the game children', () { - SpaceshipEntranceBallContactCallback().begin( - entrance, - ball, - MockContact(), - ); - - verify(game.reorderChildren).called(1); + verify(() => ball.elevation = Elevation.spaceship.order).called(1); }); }); @@ -64,17 +54,7 @@ void main() { MockContact(), ); - verify(() => ball.priority = 1).called(1); - }); - - test('re order the game children', () { - SpaceshipHoleBallContactCallback().begin( - hole, - ball, - MockContact(), - ); - - verify(game.reorderChildren).called(1); + verify(() => ball.elevation = Elevation.board.order).called(1); }); }); });