Files
Reboot-Launcher/dependencies/fluent_ui-3.12.0/test/label_test.dart
Alessandro Autiero 55467152c9 Made build portable
2022-10-07 17:23:30 +02:00

23 lines
525 B
Dart

import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_test/flutter_test.dart';
import 'app_test.dart';
void main() {
testWidgets('InfoLabel labelStyle is applied correctly to Text',
(WidgetTester tester) async {
const labelStyle = TextStyle();
await tester.pumpWidget(
wrapApp(
child: const InfoLabel(
label: 'Label text',
labelStyle: labelStyle,
),
),
);
expect(tester.widget<Text>(find.text('Label text')).style, labelStyle);
});
}