Skip to content

Commit

Permalink
chore(deriv_auth): fixing the deriv reset pass layout test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrar-deriv committed Feb 26, 2024
1 parent 59278c7 commit d4eb573
Showing 1 changed file with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ignore_for_file: always_specify_types

import 'package:deriv_auth/deriv_auth.dart';
import 'package:deriv_auth/features/reset_password/presentation/layouts/deriv_reset_pass_layout.dart';
import 'package:deriv_ui/deriv_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
Expand Down Expand Up @@ -32,7 +31,10 @@ void main() {
BlocProvider<DerivResetPassCubit>.value(
value: mockResetPassCubit,
child: DerivResetPassLayout(
onResetPassError: (String? error) {},
onResetPassError: ({
required bool isLinkExpired,
String? error,
}) {},
),
),
);
Expand All @@ -53,7 +55,10 @@ void main() {
BlocProvider<DerivResetPassCubit>.value(
value: mockResetPassCubit,
child: DerivResetPassLayout(
onResetPassError: (String? error) {},
onResetPassError: ({
required bool isLinkExpired,
String? error,
}) {},
),
),
);
Expand All @@ -77,7 +82,10 @@ void main() {
BlocProvider<DerivResetPassCubit>.value(
value: mockResetPassCubit,
child: DerivResetPassLayout(
onResetPassError: (String? error) {},
onResetPassError: ({
required bool isLinkExpired,
String? error,
}) {},
),
),
);
Expand All @@ -102,7 +110,10 @@ void main() {
BlocProvider<DerivResetPassCubit>.value(
value: mockResetPassCubit,
child: DerivResetPassLayout(
onResetPassError: (String? error) {},
onResetPassError: ({
required bool isLinkExpired,
String? error,
}) {},
),
),
);
Expand Down Expand Up @@ -132,7 +143,10 @@ void main() {
BlocProvider<DerivResetPassCubit>.value(
value: mockResetPassCubit,
child: DerivResetPassLayout(
onResetPassError: (String? error) {},
onResetPassError: ({
required bool isLinkExpired,
String? error,
}) {},
),
),
);
Expand Down Expand Up @@ -162,7 +176,10 @@ void main() {
BlocProvider<DerivResetPassCubit>.value(
value: mockResetPassCubit,
child: DerivResetPassLayout(
onResetPassError: (String? error) {
onResetPassError: ({
required bool isLinkExpired,
String? error,
}) {
onResetPassErrorCalled = true;
},
),
Expand Down

0 comments on commit d4eb573

Please sign in to comment.