Skip to content

Commit 5661eaa

Browse files
committed
fix: tests
1 parent 2ec62d2 commit 5661eaa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/layer/circle_layer_test.dart

+8-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ 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(
31+
find.descendant(
32+
of: find.byType(CircleLayer), matching: find.byType(CustomPaint)),
33+
findsOneWidget);
2834
});
2935
}

0 commit comments

Comments
 (0)