Skip to content

Commit

Permalink
refactor tests to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd committed Jan 26, 2024
1 parent e90fea2 commit a781cd7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/test/features/home/account_balance_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@ import '../../helpers/widget_helpers.dart';

void main() {
group('AccountBalance', () {
testWidgets('should show account balance', (widgetTester) async {
await widgetTester.pumpWidget(
testWidgets('should show account balance', (tester) async {
await tester.pumpWidget(
WidgetHelpers.testableWidget(child: const AccountBalance()),
);

expect(find.text('Account balance'), findsOneWidget);
});

testWidgets('should show valid account balance amount',
(widgetTester) async {
await widgetTester.pumpWidget(
testWidgets('should show valid account balance amount', (tester) async {
await tester.pumpWidget(
WidgetHelpers.testableWidget(child: const AccountBalance()),
);

Expand Down

0 comments on commit a781cd7

Please sign in to comment.