test: added multiplier to game state

pull/213/head
RuiAlonso 3 years ago
parent c7a766d0ca
commit a1397e1102

@ -19,6 +19,7 @@ void main() {
final bloc = MockGameBloc();
const state = GameState(
score: 0,
multiplier: 1,
balls: 0,
bonusHistory: [],
);

@ -20,6 +20,7 @@ void main() {
final bloc = MockGameBloc();
const state = GameState(
score: 0,
multiplier: 1,
balls: 0,
bonusHistory: [],
);

@ -14,6 +14,7 @@ void main() {
test('is true when the game over state has changed', () {
final state = GameState(
score: 10,
multiplier: 1,
balls: 0,
bonusHistory: const [],
);
@ -63,6 +64,7 @@ void main() {
gameFlowController.onNewState(
GameState(
score: 10,
multiplier: 1,
balls: 0,
bonusHistory: const [],
),

@ -29,6 +29,7 @@ void main() {
const previous = GameState.initial();
const current = GameState(
score: 10,
multiplier: 1,
balls: 3,
bonusHistory: [],
);
@ -41,6 +42,7 @@ void main() {
() {
const current = GameState(
score: 10,
multiplier: 1,
balls: 3,
bonusHistory: [],
);
@ -65,6 +67,7 @@ void main() {
() {
const state = GameState(
score: 10,
multiplier: 1,
balls: 3,
bonusHistory: [],
);
@ -82,6 +85,7 @@ void main() {
controller.onNewState(
const GameState(
score: 10,
multiplier: 1,
balls: 3,
bonusHistory: [],
),
@ -90,6 +94,7 @@ void main() {
controller.onNewState(
const GameState(
score: 14,
multiplier: 1,
balls: 3,
bonusHistory: [],
),

@ -11,6 +11,7 @@ void main() {
late GameBloc gameBloc;
const initialState = GameState(
score: 10,
multiplier: 1,
balls: 2,
bonusHistory: [],
);

Loading…
Cancel
Save