From 835db6d23cf542543bc74e0b4e94d0cad7003752 Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:30:03 -0300 Subject: [PATCH] fix unit test --- lib/user/name/presentation/bloc/profile_name_bloc.dart | 2 -- test/user/name/presentation/bloc/profile_name_bloc_test.dart | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/user/name/presentation/bloc/profile_name_bloc.dart b/lib/user/name/presentation/bloc/profile_name_bloc.dart index eb799b34d..3d088db83 100644 --- a/lib/user/name/presentation/bloc/profile_name_bloc.dart +++ b/lib/user/name/presentation/bloc/profile_name_bloc.dart @@ -77,8 +77,6 @@ class ProfileNameBloc extends Bloc { final getLogo = refreshLogo || profileLogoTxId == null; - logger.d('Getting primary name with getLogo: $getLogo'); - var primaryNameDetails = await _arnsRepository.getPrimaryName( walletAddress, update: refreshName, 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 ea2a13fdb..8fa203412 100644 --- a/test/user/name/presentation/bloc/profile_name_bloc_test.dart +++ b/test/user/name/presentation/bloc/profile_name_bloc_test.dart @@ -38,7 +38,7 @@ void main() { 'emits [ProfileNameLoading, ProfileNameLoaded] when LoadProfileName is successful', build: () { when(() => arnsRepository.getPrimaryName(testWalletAddress, - update: false, getLogo: false)) + update: false, getLogo: true)) .thenAnswer((_) async => const PrimaryNameDetails( primaryName: testPrimaryName, logo: null,