From ae07851396495e74072d60a380f542fcbb99fc7e Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Tue, 10 Feb 2026 18:47:53 +0300 Subject: [PATCH] test: update OAuth verification mock to use `anyNamed` arguments for `email` and `phone`. --- .../auth/presentation/bloc/oauth_cubit/oauth_cubit_test.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/features/auth/presentation/bloc/oauth_cubit/oauth_cubit_test.dart b/test/features/auth/presentation/bloc/oauth_cubit/oauth_cubit_test.dart index 347ae773..8bf682e2 100644 --- a/test/features/auth/presentation/bloc/oauth_cubit/oauth_cubit_test.dart +++ b/test/features/auth/presentation/bloc/oauth_cubit/oauth_cubit_test.dart @@ -287,8 +287,7 @@ void main() { const verificationResponse = OAuthVerificationRequestResponse(email: 't***@example.com', status: 'sent'); - // OAuthCubit всегда передает email: null в репозиторий, независимо от переданного параметра - when(mockAuthRepository.requestOAuthVerification(email: null, phone: null)).thenAnswer((_) async => verificationResponse); + when(mockAuthRepository.requestOAuthVerification(email: anyNamed('email'), phone: anyNamed('phone'))).thenAnswer((_) async => verificationResponse); final result = await oauthCubit!.requestOAuthVerification(email: 'test@example.com');