Skip to content

Commit 68ca35b

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents e0c415c + 73565d1 commit 68ca35b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,6 @@ flutter pub global run intl_utils:generate
159159

160160

161161
Link library : https://pub.dev/packages/intl_utils
162+
163+
## Visitors Count
164+
<img height="30px" src = "https://profile-counter.glitch.me/vnapnic/count.svg" alt ="Loading">

test/login/domain/login_usecase_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ void main() {
99
final mockRepository = LoginRepositoryMock();
1010
final useCase = LoginUseCase(mockRepository);
1111

12-
useCase.login('VMO', 'VMO');
12+
useCase.login('test', 'test');
1313

14-
verify(mockRepository.login('VMO', 'VMO'))
14+
verify(mockRepository.login('test', 'test'))
1515
.called(1);
1616
});
1717
}

test/login/presentation/cubit/login_bloc_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ void main() {
2323
build: () {
2424
mockUseCase = LoginUserCaseMock();
2525
loginCubit = LoginCubit(loginUseCase: mockUseCase);
26-
when(mockUseCase.login('VMO', 'VMO')).thenAnswer((_) async => response);
26+
when(mockUseCase.login('test', 'test')).thenAnswer((_) async => response);
2727
return loginCubit;
2828
},
29-
act: (cubit) async => await cubit.login(user: 'VMO', password: 'VMO'),
29+
act: (cubit) async => await cubit.login(user: 'test', password: 'test'),
3030
expect: () =>
3131
[LoadingLoginState(), LoginSuccessfullyState(response: response)],
3232
);
@@ -39,7 +39,7 @@ void main() {
3939
when(mockUseCase.login(null, null)).thenAnswer((_) => throw TypeError());
4040
return loginCubit;
4141
},
42-
act: (cubit) async => await cubit.login(user: 'VMO', password: 'VMO'),
42+
act: (cubit) async => await cubit.login(user: 'test', password: 'test'),
4343
expect: () => [
4444
LoadingLoginState(),
4545
ErrorLoginState(errorMessage: S.current.connectionProblem)

0 commit comments

Comments
 (0)