From e36d288fd12a6165f2ea64bebd4bc3cc8a5b5da5 Mon Sep 17 00:00:00 2001 From: arturplaczek Date: Wed, 13 Apr 2022 15:20:36 +0200 Subject: [PATCH] fix: update const for event & bloc --- test/game/bloc/start_game_bloc_test.dart | 6 +++--- test/game/bloc/start_game_event_test.dart | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/game/bloc/start_game_bloc_test.dart b/test/game/bloc/start_game_bloc_test.dart index d3d30634..7b2aff56 100644 --- a/test/game/bloc/start_game_bloc_test.dart +++ b/test/game/bloc/start_game_bloc_test.dart @@ -27,7 +27,7 @@ void main() { build: () => StartGameBloc( game: pinballGame, ), - act: (bloc) => bloc.add(SelectCharacter()), + act: (bloc) => bloc.add(const SelectCharacter()), expect: () => [ const StartGameState( status: StartGameStatus.selectCharacter, @@ -40,7 +40,7 @@ void main() { build: () => StartGameBloc( game: pinballGame, ), - act: (bloc) => bloc.add(HowToPlay()), + act: (bloc) => bloc.add(const HowToPlay()), expect: () => [ const StartGameState( status: StartGameStatus.howToPlay, @@ -53,7 +53,7 @@ void main() { build: () => StartGameBloc( game: pinballGame, ), - act: (bloc) => bloc.add(Play()), + act: (bloc) => bloc.add(const Play()), expect: () => [ const StartGameState( status: StartGameStatus.play, diff --git a/test/game/bloc/start_game_event_test.dart b/test/game/bloc/start_game_event_test.dart index 00ddf741..ff98abf1 100644 --- a/test/game/bloc/start_game_event_test.dart +++ b/test/game/bloc/start_game_event_test.dart @@ -5,22 +5,22 @@ void main() { group('StartGameEvent', () { test('SelectCharacter supports value equality', () { expect( - SelectCharacter(), - equals(SelectCharacter()), + const SelectCharacter(), + equals(const SelectCharacter()), ); }); test('HowToPlay supports value equality', () { expect( - HowToPlay(), - equals(HowToPlay()), + const HowToPlay(), + equals(const HowToPlay()), ); }); test('Play supports value equality', () { expect( - Play(), - equals(Play()), + const Play(), + equals(const Play()), ); }); });