From 6ffc016f9e6f340f92e0a2dc356301f3e170ca0a Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:46:27 -0300 Subject: [PATCH] Update profile_name_bloc_test.dart --- .../user/name/presentation/bloc/profile_name_bloc_test.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/user/name/presentation/bloc/profile_name_bloc_test.dart b/test/user/name/presentation/bloc/profile_name_bloc_test.dart index 17c216425..ea2a13fdb 100644 --- a/test/user/name/presentation/bloc/profile_name_bloc_test.dart +++ b/test/user/name/presentation/bloc/profile_name_bloc_test.dart @@ -37,12 +37,14 @@ void main() { blocTest( 'emits [ProfileNameLoading, ProfileNameLoaded] when LoadProfileName is successful', build: () { - when(() => - arnsRepository.getPrimaryName(testWalletAddress, update: false)) + when(() => arnsRepository.getPrimaryName(testWalletAddress, + update: false, getLogo: false)) .thenAnswer((_) async => const PrimaryNameDetails( primaryName: testPrimaryName, logo: null, )); + when(() => profileLogoRepository.getProfileLogoTxId(testWalletAddress)) + .thenAnswer((_) async => null); return ProfileNameBloc(arnsRepository, profileLogoRepository, auth); }, act: (bloc) => bloc.add(LoadProfileName()),