MIF_E31230069/spk_mobile/test/widget_test.dart

22 lines
798 B
Dart

// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:spk_mobile/main.dart';
void main() {
testWidgets('App builds (smoke test)', (WidgetTester tester) async {
await tester.pumpWidget(const MyApp());
// Basic sanity checks: app root widgets are present.
expect(find.byType(MaterialApp), findsOneWidget);
expect(find.byType(SplashScreen), findsOneWidget);
});
}