test: test coverage and removed layer unnecessary tests for spaceship

pull/65/head
RuiAlonso 4 years ago
parent 3480907ab9
commit 32dd7ba631

@ -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);
});
});
});
}

@ -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);
},
);

Loading…
Cancel
Save