Skip to content

Commit

Permalink
some bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed May 31, 2024
1 parent 062a2a6 commit 0950923
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ void main() {
await tester.pumpAndSettle();

await tester.tap(find.text('Continue'.toUpperCase()));
verify(() => onboardingCubit.emitOnboardingProcessing()).called(1);
verify(() => onboardingCubit.emitOnboardingProcessing());

verify(
() => navigator.pushReplacement<void, void>(
Expand All @@ -329,6 +329,8 @@ void main() {
'emits Success when button is pressed and navigates to correct screen'
' when isFromOnboarding is false', (tester) async {
when(() => flavorCubit.state).thenAnswer((_) => FlavorMode.development);
when(() => onboardingCubit.emitOnboardingProcessing())
.thenAnswer((_) async {});
final onBoardingVerifyPhraseCubit = OnBoardingVerifyPhraseCubit(
didKitProvider: didKitProvider,
keyGenerator: keyGenerator,
Expand Down Expand Up @@ -392,6 +394,8 @@ void main() {
});
testWidgets('emits Error when error occurs', (tester) async {
when(() => flavorCubit.state).thenAnswer((_) => FlavorMode.development);
when(() => onboardingCubit.emitOnboardingProcessing())
.thenAnswer((_) async {});
when(
() => secureStorageProvider.set(
SecureStorageKeys.hasVerifiedMnemonics,
Expand Down

0 comments on commit 0950923

Please sign in to comment.