From 25f89aef647bde9f8c71bbc84de9c51c6f13769e Mon Sep 17 00:00:00 2001 From: Isaac Obella Date: Tue, 7 Mar 2023 19:54:33 +0300 Subject: [PATCH] fix: Failing test Signed-off-by: Isaac Obella --- test/presentation/home/widgets/password_modal_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/presentation/home/widgets/password_modal_test.dart b/test/presentation/home/widgets/password_modal_test.dart index 7a7155c6..0a8571cf 100644 --- a/test/presentation/home/widgets/password_modal_test.dart +++ b/test/presentation/home/widgets/password_modal_test.dart @@ -166,7 +166,7 @@ void main() { await tester.pumpAndSettle(); final capturedRoutes = - verify(() => stackRouter.push(captureAny())).captured; + verify(() => stackRouter.replace(captureAny())).captured; expect(capturedRoutes.length, 1); expect(capturedRoutes.first, isA());