Skip to content

Commit

Permalink
Update card_widget_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Oct 17, 2024
1 parent 7f498fb commit 84458f6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/remix/test/components/card/card_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void main() {
const m.MaterialApp(
home: Card(
style: CardStyle(),
children: [m.Text('Test')],
child: m.Text('Test'),
),
),
);
Expand All @@ -26,7 +26,7 @@ void main() {
const m.MaterialApp(
home: Card(
style: FakeCardStyle(color),
children: [m.Text('Custom Style')],
child: m.Text('Custom Style'),
),
),
);
Expand All @@ -40,18 +40,12 @@ void main() {
const m.MaterialApp(
home: Card(
style: CardStyle(),
children: [
m.Text('Child 1'),
m.Text('Child 2'),
m.Text('Child 3'),
],
child: m.Text('Child 1'),
),
),
);

expect(find.text('Child 1'), findsOneWidget);
expect(find.text('Child 2'), findsOneWidget);
expect(find.text('Child 3'), findsOneWidget);
});
});
}
Expand Down

0 comments on commit 84458f6

Please sign in to comment.