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. /// This can be used for testing [GoogleLetter]'s behaviors in isolation.
// TODO(alestiago): Refactor injecting bloc once the following is merged: // TODO(alestiago): Refactor injecting bloc once the following is merged:

@ -34,13 +34,13 @@ void main() {
initialState: DashNestBumperState.active, initialState: DashNestBumperState.active,
); );
final alienBumper = DashNestBumper.test(bloc: bloc); final dashNestBumper = DashNestBumper.test(bloc: bloc);
await alienBumper.add(behavior); await dashNestBumper.add(behavior);
await game.ensureAdd(alienBumper); await game.ensureAdd(dashNestBumper);
behavior.beginContact(MockBall(), MockContact()); 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)); expect(dashNestBumper.children, contains(component));
}); });
flameTester.test('an DashNestBumperBallContactBehavior', (game) async { flameTester.test('a DashNestBumperBallContactBehavior', (game) async {
final dashNestBumper = DashNestBumper.a(); final dashNestBumper = DashNestBumper.a();
await game.ensureAdd(dashNestBumper); await game.ensureAdd(dashNestBumper);
expect( expect(

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

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

Loading…
Cancel
Save