Skip to content

Commit 1c5ed7e

Browse files
committed
Add dummp test to make ci happy
1 parent fb7c8fd commit 1c5ed7e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

example/test/widget_test.dart

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// This is a basic Flutter widget test.
2+
//
3+
// To perform an interaction with a widget in your test, use the WidgetTester
4+
// utility in the flutter_test package. For example, you can send tap and scroll
5+
// gestures. You can also use WidgetTester to find child widgets in the widget
6+
// tree, read text, and verify that the values of widget properties are correct.
7+
8+
import 'package:flutter/material.dart';
9+
import 'package:flutter_test/flutter_test.dart';
10+
11+
import 'package:flutter_nfc_kit_example/main.dart';
12+
13+
void main() {
14+
testWidgets('Verify Platform version', (WidgetTester tester) async {
15+
// Build our app and trigger a frame.
16+
await tester.pumpWidget(const MyApp());
17+
18+
// Verify that platform version is retrieved.
19+
expect(
20+
find.byWidgetPredicate(
21+
(Widget widget) => widget is Text &&
22+
widget.data!.startsWith('Running on:'),
23+
),
24+
findsOneWidget,
25+
);
26+
});
27+
}

0 commit comments

Comments
 (0)