feat(app): refactoring of sentry using, feat(become_consultant): fixed possible infinite loading, feat(push_notifications): fixed push navigation from paid plan push

This commit is contained in:
misha
2026-04-07 10:05:11 +03:00
parent b6b13b1db5
commit aac085def4
133 changed files with 2344 additions and 2456 deletions

View File

@@ -143,7 +143,7 @@ void main() {
when(mockProfileRepository.getProfileBySlug('test-user')).thenThrow(Exception('Ошибка загрузки'));
expect(() => profileCubit!.getProfileBySlug('test-user'), throwsException);
await profileCubit!.getProfileBySlug('test-user');
final state = profileCubit!.state;
expect(state, isA<ProfileStateError>());

View File

@@ -280,9 +280,8 @@ void main() {
when(mockService.tryVerifyEmailByCode(code: '{"code": "$code"}')).thenAnswer((_) async => Future<void>.value());
final result = await repository.tryVerifyEmailByCode(code);
await repository.tryVerifyEmailByCode(code);
expect(result, isTrue);
verify(mockService.tryVerifyEmailByCode(code: '{"code": "$code"}')).called(1);
});
@@ -291,9 +290,10 @@ void main() {
when(mockService.tryVerifyEmailByCode(code: '{"code": "$code"}')).thenThrow(Exception('Invalid code'));
final result = await repository.tryVerifyEmailByCode(code);
expect(result, isFalse);
await expectLater(
repository.tryVerifyEmailByCode(code),
throwsA(isA<Exception>()),
);
});
test('deleteAccount - удаляет аккаунт', () async {