mirror of https://github.com/flutter/pinball.git
parent
148143e624
commit
6732d68935
@ -0,0 +1,27 @@
|
||||
// ignore_for_file: cascade_invocations
|
||||
|
||||
import 'package:flame_test/flame_test.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pinball_components/pinball_components.dart';
|
||||
|
||||
import '../../helpers/helpers.dart';
|
||||
|
||||
void main() {
|
||||
group('SpaceshipEntranceRamp', () {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
final flameTester = FlameTester(TestGame.new);
|
||||
|
||||
flameTester.test(
|
||||
'loads correctly',
|
||||
(game) async {
|
||||
final spaceshipEntranceRamp = SpaceshipEntranceRamp();
|
||||
await game.addFromBlueprint(spaceshipEntranceRamp);
|
||||
await game.ready();
|
||||
|
||||
for (final element in spaceshipEntranceRamp.components) {
|
||||
expect(game.contains(element), isTrue);
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
Loading…
Reference in new issue