forked from eatvio/eatvio_app
feat(tests): test coverage is 70.4
This commit is contained in:
@@ -17,6 +17,17 @@ void main() {
|
||||
await tester.pump();
|
||||
|
||||
expect(find.byType(Loader), findsOneWidget);
|
||||
expect(find.byType(Center), findsOneWidget);
|
||||
expect(find.byType(SizedBox), findsWidgets);
|
||||
});
|
||||
|
||||
testWidgets('renders loader with correct dimensions', (tester) async {
|
||||
await tester.pumpWidget(wrap(const Loader()));
|
||||
await tester.pump();
|
||||
|
||||
final sizedBox = tester.widget<SizedBox>(find.byType(SizedBox).first);
|
||||
expect(sizedBox.height, 42);
|
||||
expect(sizedBox.width, 42);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user