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

@@ -103,11 +103,12 @@ void main() {
.called(1);
});
test('rethrows exception when error occurs', () async {
test('returns false when prefs throws (error is reported)', () async {
when(mockPrefs.getInt(PrefsKeys.registrationDate))
.thenThrow(Exception('Test error'));
expect(() => cubit.checkRegistrationDate(), throwsException);
final result = await cubit.checkRegistrationDate();
expect(result, false);
});
});
}