fix: apply code review

pull/254/head
arturplaczek 3 years ago
parent 2ed170e841
commit a5107c0f1c

@ -24,6 +24,8 @@ class StartGameListener extends StatelessWidget {
return BlocListener<StartGameBloc, StartGameState>(
listener: (context, state) {
switch (state.status) {
case StartGameStatus.initial:
break;
case StartGameStatus.selectCharacter:
_onSelectCharacter(context);
break;
@ -33,8 +35,6 @@ class StartGameListener extends StatelessWidget {
case StartGameStatus.play:
_game.gameFlowController.start();
break;
case StartGameStatus.initial:
break;
}
},
child: _child,

@ -26,7 +26,7 @@ void main() {
expect(find.text('Play'), findsOneWidget);
});
testWidgets('calls PlayTapped event to StartGameBloc when taped on play',
testWidgets('adds PlayTapped event to StartGameBloc when taped',
(tester) async {
await tester.pumpApp(
const PlayButtonOverlay(),

@ -87,7 +87,7 @@ void main() {
.called(1);
});
testWidgets('calls CharacterSelected event when start is tapped',
testWidgets('adds CharacterSelected event when start is tapped',
(tester) async {
whenListen(
startGameBloc,

Loading…
Cancel
Save