fix: update const for event & bloc

pull/184/head
arturplaczek 4 years ago
parent af65374aa6
commit e36d288fd1

@ -27,7 +27,7 @@ void main() {
build: () => StartGameBloc( build: () => StartGameBloc(
game: pinballGame, game: pinballGame,
), ),
act: (bloc) => bloc.add(SelectCharacter()), act: (bloc) => bloc.add(const SelectCharacter()),
expect: () => [ expect: () => [
const StartGameState( const StartGameState(
status: StartGameStatus.selectCharacter, status: StartGameStatus.selectCharacter,
@ -40,7 +40,7 @@ void main() {
build: () => StartGameBloc( build: () => StartGameBloc(
game: pinballGame, game: pinballGame,
), ),
act: (bloc) => bloc.add(HowToPlay()), act: (bloc) => bloc.add(const HowToPlay()),
expect: () => [ expect: () => [
const StartGameState( const StartGameState(
status: StartGameStatus.howToPlay, status: StartGameStatus.howToPlay,
@ -53,7 +53,7 @@ void main() {
build: () => StartGameBloc( build: () => StartGameBloc(
game: pinballGame, game: pinballGame,
), ),
act: (bloc) => bloc.add(Play()), act: (bloc) => bloc.add(const Play()),
expect: () => [ expect: () => [
const StartGameState( const StartGameState(
status: StartGameStatus.play, status: StartGameStatus.play,

@ -5,22 +5,22 @@ void main() {
group('StartGameEvent', () { group('StartGameEvent', () {
test('SelectCharacter supports value equality', () { test('SelectCharacter supports value equality', () {
expect( expect(
SelectCharacter(), const SelectCharacter(),
equals(SelectCharacter()), equals(const SelectCharacter()),
); );
}); });
test('HowToPlay supports value equality', () { test('HowToPlay supports value equality', () {
expect( expect(
HowToPlay(), const HowToPlay(),
equals(HowToPlay()), equals(const HowToPlay()),
); );
}); });
test('Play supports value equality', () { test('Play supports value equality', () {
expect( expect(
Play(), const Play(),
equals(Play()), equals(const Play()),
); );
}); });
}); });

Loading…
Cancel
Save