fix(auth): correct resend response type and improve error messages
This commit is contained in:
@@ -170,13 +170,9 @@ void main() {
|
||||
build: () => cubit,
|
||||
seed: () => RegisterState(pendingEmail: 'test@example.com'),
|
||||
setUp: () {
|
||||
when(() => mockRepository.signupResend(any())).thenAnswer(
|
||||
(_) async => SignupStartResponse(
|
||||
status: 'ok',
|
||||
email: 'test@example.com',
|
||||
message: 'Code sent',
|
||||
),
|
||||
);
|
||||
when(
|
||||
() => mockRepository.signupResend(any()),
|
||||
).thenAnswer((_) async => SignupResendResponse(message: 'Code sent'));
|
||||
},
|
||||
act: (c) => c.resendCode(),
|
||||
expect: () => [
|
||||
|
||||
Reference in New Issue
Block a user