Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Oct 5, 2023
1 parent 2ec62d2 commit d151a55
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/layer/circle_layer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ void main() {

await tester.pumpWidget(TestApp(circles: circles));
expect(find.byType(FlutterMap), findsOneWidget);
expect(find.byType(CircleLayer), findsWidgets);
expect(find.byKey(key), findsOneWidget);
expect(find.byType(CircleLayer), findsOneWidget);

// Assert that batching works and all circles are drawn into the same
// CustomPaint/Canvas.
expect(find.descendant(of: find.byType(CircleLayer), matching: find.byType(CustomPaint)), findsOneWidget);
});
}

0 comments on commit d151a55

Please sign in to comment.