forked from eatvio/eatvio_app
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:
@@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user