19 lines
458 B
Dart
19 lines
458 B
Dart
import 'package:abawo_bt_app/widgets/app_shell.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('renders app shell', (WidgetTester tester) async {
|
|
await tester.pumpWidget(
|
|
const MaterialApp(
|
|
home: AppShell(
|
|
currentLocation: '/devices',
|
|
child: Text('Devices'),
|
|
),
|
|
),
|
|
);
|
|
|
|
expect(find.text('Devices'), findsWidgets);
|
|
});
|
|
}
|