From 32dd7ba63170278ea8670ad1cfb5553cbb4a0a68 Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Mon, 21 Mar 2022 15:56:11 +0100 Subject: [PATCH] test: test coverage and removed layer unnecessary tests for spaceship --- test/game/components/spaceship_test.dart | 22 ---------------------- test/game/pinball_game_test.dart | 4 +--- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/test/game/components/spaceship_test.dart b/test/game/components/spaceship_test.dart index 7e16edd8..c7eb24b2 100644 --- a/test/game/components/spaceship_test.dart +++ b/test/game/components/spaceship_test.dart @@ -54,17 +54,6 @@ void main() { verify(game.reorderChildren).called(1); }); - - test('changes the filter data from the ball fixtures', () { - SpaceshipEntranceBallContactCallback().begin( - entrance, - ball, - MockContact(), - ); - - verify(() => filterData.maskBits = 0x0002).called(1); - verify(() => filterData.categoryBits = 0x0002).called(1); - }); }); group('SpaceshipHoleBallContactCallback', () { @@ -87,17 +76,6 @@ void main() { verify(game.reorderChildren).called(1); }); - - test('changes the filter data from the ball fixtures', () { - SpaceshipHoleBallContactCallback().begin( - hole, - ball, - MockContact(), - ); - - verify(() => filterData.categoryBits = 0xFFFF).called(1); - verify(() => filterData.maskBits = 0x0001).called(1); - }); }); }); } diff --git a/test/game/pinball_game_test.dart b/test/game/pinball_game_test.dart index c145e2e4..b9e0ac7d 100644 --- a/test/game/pinball_game_test.dart +++ b/test/game/pinball_game_test.dart @@ -25,9 +25,7 @@ void main() { final walls = game.children.where( (component) => component is Wall && component is! BottomWall, ); - // TODO(allisonryan0002): expect 3 when launch track is added and - // temporary wall is removed. - expect(walls.length, 4); + expect(walls.length, 3); }, );