|
|
|
@ -18,21 +18,19 @@ void main() {
|
|
|
|
|
() {
|
|
|
|
|
bool Function(Component) componentSelector<T>() =>
|
|
|
|
|
(component) => component is T;
|
|
|
|
|
|
|
|
|
|
group('FlipperGroup', () {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has only one right Flipper',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
expect(
|
|
|
|
|
() => game.children.singleWhere(
|
|
|
|
|
componentSelector<FlipperGroup>(),
|
|
|
|
|
),
|
|
|
|
|
returnsNormally,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has only one FlipperGroup',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
expect(
|
|
|
|
|
() => game.children.singleWhere(
|
|
|
|
|
componentSelector<FlipperGroup>(),
|
|
|
|
|
),
|
|
|
|
|
returnsNormally,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|