refactor: typos correction

pull/234/head
alestiago 3 years ago
parent c3d8471a04
commit f5d53beb4b

@ -22,7 +22,7 @@ class GoogleLetter extends BodyComponent with InitialPosition {
],
);
/// Creates an [GoogleLetter] without any children.
/// Creates a [GoogleLetter] without any children.
///
/// This can be used for testing [GoogleLetter]'s behaviors in isolation.
// TODO(alestiago): Refactor injecting bloc once the following is merged:

@ -34,13 +34,13 @@ void main() {
initialState: DashNestBumperState.active,
);
final alienBumper = DashNestBumper.test(bloc: bloc);
await alienBumper.add(behavior);
await game.ensureAdd(alienBumper);
final dashNestBumper = DashNestBumper.test(bloc: bloc);
await dashNestBumper.add(behavior);
await game.ensureAdd(dashNestBumper);
behavior.beginContact(MockBall(), MockContact());
verify(alienBumper.bloc.onBallContacted).called(1);
verify(dashNestBumper.bloc.onBallContacted).called(1);
},
);
},

@ -73,7 +73,7 @@ void main() {
expect(dashNestBumper.children, contains(component));
});
flameTester.test('an DashNestBumperBallContactBehavior', (game) async {
flameTester.test('a DashNestBumperBallContactBehavior', (game) async {
final dashNestBumper = DashNestBumper.a();
await game.ensureAdd(dashNestBumper);
expect(

@ -4,7 +4,7 @@ import 'package:pinball_components/pinball_components.dart';
void main() {
group(
'GoogleLetterBumperCubit',
'GoogleLetterCubit',
() {
blocTest<GoogleLetterCubit, GoogleLetterState>(
'onBallContacted emits active',

@ -71,7 +71,7 @@ void main() {
expect(sparkyBumper.children, contains(component));
});
flameTester.test('an SparkyBumperBallContactBehavior', (game) async {
flameTester.test('a SparkyBumperBallContactBehavior', (game) async {
final sparkyBumper = SparkyBumper.a();
await game.ensureAdd(sparkyBumper);
expect(

Loading…
Cancel
Save