From d9a9b9b51e5ca3ce1b34ec1b6afad3c2936eaa79 Mon Sep 17 00:00:00 2001 From: Sneha Canopas Date: Tue, 3 Dec 2024 11:39:53 +0530 Subject: [PATCH] Fix unit test --- .../leaves/leave_screen/admin_leaves_test.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/unit_test/admin/leaves/leave_screen/admin_leaves_test.dart b/test/unit_test/admin/leaves/leave_screen/admin_leaves_test.dart index 0d3bbcbd..ef32cf6d 100644 --- a/test/unit_test/admin/leaves/leave_screen/admin_leaves_test.dart +++ b/test/unit_test/admin/leaves/leave_screen/admin_leaves_test.dart @@ -154,7 +154,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)), + ]).groupByMonth((la) => la.leave.startDate)), ])); }); @@ -197,7 +197,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)), + ]).groupByMonth((la) => la.leave.startDate)), AdminLeavesState( members: [joi], selectedMember: joi, @@ -210,7 +210,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)) + ]).groupByMonth((la) => la.leave.startDate)) ])); }); }); @@ -298,7 +298,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)), + ]).groupByMonth((la) => la.leave.startDate)), ])); }); @@ -322,7 +322,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)), + ]).groupByMonth((la) => la.leave.startDate)), AdminLeavesState( fetchMoreData: Status.success, members: [joi, andrew], @@ -336,7 +336,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)), + ]).groupByMonth((la) => la.leave.startDate)), ])); }); @@ -359,7 +359,7 @@ void main() { ], members: [ joi, andrew - ]).groupByMonth((la) => la.leave.appliedOn)))); + ]).groupByMonth((la) => la.leave.startDate)))); }); }); });