fix: two coverage lines

pull/277/head
Allison Ryan 3 years ago
parent a896da3d97
commit 385eda6486

@ -29,6 +29,15 @@ void main() {
}, },
); );
flameTester.test('adds new children', (game) async {
final component = Component();
final chromeDino = ChromeDino(
children: [component],
);
await game.ensureAdd(chromeDino);
expect(chromeDino.children, contains(component));
});
flameTester.testGameWidget( flameTester.testGameWidget(
'renders correctly', 'renders correctly',
setUp: (game, tester) async { setUp: (game, tester) async {

@ -31,6 +31,14 @@ void main() {
isNotNull, isNotNull,
); );
}); });
test('initial is idle with mouth closed', () {
const initialState = ChromeDinoState(
status: ChromeDinoStatus.idle,
isMouthOpen: false,
);
expect(ChromeDinoState.inital(), equals(initialState));
});
}); });
group('copyWith', () { group('copyWith', () {

Loading…
Cancel
Save