Skip to content

Commit

Permalink
Update profile_name_bloc_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Dec 18, 2024
1 parent 04a1384 commit 6ffc016
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/user/name/presentation/bloc/profile_name_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ void main() {
blocTest<ProfileNameBloc, ProfileNameState>(
'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()),
Expand Down

0 comments on commit 6ffc016

Please sign in to comment.