Skip to content

Commit

Permalink
test: update ItemCard tests for new unit names
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrit committed Sep 1, 2023
1 parent 5125af3 commit d492133
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/calculator/widgets/item_card_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void main() {
SettingsState(
enabledUnits: Unit.all,
navigationAreaRatio: 0.3,
showCostPerHundred: true,
taxRate: 0.0,
theme: ThemeData.dark(),
),
Expand Down Expand Up @@ -126,7 +127,7 @@ void main() {

expect(find.text('Item 1'), findsOneWidget);
expect(find.text(r'$ 1.00'), findsOneWidget);
expect(find.text('1.0 grams'), findsOneWidget);
expect(find.text('1.0 g'), findsOneWidget);
expect(find.text('+tax'), findsNothing);
});

Expand Down Expand Up @@ -174,7 +175,7 @@ void main() {

expect(find.text('Item 1'), findsOneWidget);
expect(find.text(r'$ 1.00'), findsOneWidget);
expect(find.text('1.0 grams'), findsOneWidget);
expect(find.text('1.0 g'), findsOneWidget);
expect(find.text('+tax'), findsOneWidget);
});
});
Expand Down

0 comments on commit d492133

Please sign in to comment.