|
|
@ -11,7 +11,9 @@ void main() {
|
|
|
|
late GameBloc gameBloc;
|
|
|
|
late GameBloc gameBloc;
|
|
|
|
const initialState = GameState(
|
|
|
|
const initialState = GameState(
|
|
|
|
score: 0,
|
|
|
|
score: 0,
|
|
|
|
balls: 3,
|
|
|
|
multiplier: 1,
|
|
|
|
|
|
|
|
balls: 1,
|
|
|
|
|
|
|
|
rounds: 3,
|
|
|
|
bonusHistory: [],
|
|
|
|
bonusHistory: [],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -37,7 +39,7 @@ void main() {
|
|
|
|
|
|
|
|
|
|
|
|
testWidgets('two active round indicator', (tester) async {
|
|
|
|
testWidgets('two active round indicator', (tester) async {
|
|
|
|
final state = initialState.copyWith(
|
|
|
|
final state = initialState.copyWith(
|
|
|
|
balls: 2,
|
|
|
|
rounds: 2,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
whenListen(
|
|
|
|
whenListen(
|
|
|
|
gameBloc,
|
|
|
|
gameBloc,
|
|
|
@ -68,7 +70,7 @@ void main() {
|
|
|
|
|
|
|
|
|
|
|
|
testWidgets('one active round indicator', (tester) async {
|
|
|
|
testWidgets('one active round indicator', (tester) async {
|
|
|
|
final state = initialState.copyWith(
|
|
|
|
final state = initialState.copyWith(
|
|
|
|
balls: 1,
|
|
|
|
rounds: 1,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
whenListen(
|
|
|
|
whenListen(
|
|
|
|
gameBloc,
|
|
|
|
gameBloc,
|
|
|
|