Skip to content

Commit 4efcae5

Browse files
committed
test: Fix auth_test.dart
1 parent d961ac5 commit 4efcae5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/auth_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ void main() {
4040
});
4141

4242
group('Authentication', () {
43-
test('initial state should be AuthInitial', () {
44-
expect(authBloc.state, isA<AuthInitial>());
45-
});
43+
test('initial state should be AuthInitial', () => expect(authBloc.state, isA<AuthInitial>()));
4644

4745
blocTest<AuthBloc, AuthState>(
4846
'should authenticate user with valid credentials',
@@ -82,7 +80,7 @@ void main() {
8280
act: (bloc) => bloc.add(OtpVerified(tOtpRequest)),
8381
expect: () => [
8482
isA<AuthLoading>(),
85-
isA<AuthSuccess>().having((state) => state.message, 'message', 'OTP Verified Successfully!'),
83+
isA<OtpVerificationSuccess>().having((state) => state.message, 'message', 'OTP Verified Successfully!'),
8684
],
8785
);
8886

0 commit comments

Comments
 (0)