Skip to content

Commit d151a55

Browse files
committed
fix: tests
1 parent 2ec62d2 commit d151a55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/layer/circle_layer_test.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ void main() {
2323

2424
await tester.pumpWidget(TestApp(circles: circles));
2525
expect(find.byType(FlutterMap), findsOneWidget);
26-
expect(find.byType(CircleLayer), findsWidgets);
27-
expect(find.byKey(key), findsOneWidget);
26+
expect(find.byType(CircleLayer), findsOneWidget);
27+
28+
// Assert that batching works and all circles are drawn into the same
29+
// CustomPaint/Canvas.
30+
expect(find.descendant(of: find.byType(CircleLayer), matching: find.byType(CustomPaint)), findsOneWidget);
2831
});
2932
}

0 commit comments

Comments
 (0)