Skip to content

Commit 6131169

Browse files
refactor: update daily challenge view test to use createTestWidget (#1656)
* Initial plan * Update daily challenge view test to use createTestWidget Co-authored-by: huyenltnguyen <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: huyenltnguyen <[email protected]>
1 parent 3f2d3e9 commit 6131169

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mobile-app/test/widget/daily_challenge_view_test.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ void main() {
4646
}
4747

4848
testWidgets('should display app bar with correct title', (tester) async {
49-
await tester.pumpWidget(
50-
const MaterialApp(
51-
home: DailyChallengeView(),
52-
),
53-
);
49+
await tester.pumpWidget(createTestWidget());
5450

5551
await tester.pump();
5652

0 commit comments

Comments
 (0)