mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-10-31 19:04:44 +00:00
- Testsuite expansion
This commit is contained in:
1 parent
3d7997f623
commit
02808ef165
19 files changed
+445
-325
No files matched your search
@@ -48,7 +48,6 @@ class MainViewModel(
|
||||
// Save data if not null
|
||||
repository.saveLastSavedAt(CURRENT_LOCATION)
|
||||
repository.saveCurrentWeatherToRoom(entityItem)
|
||||
onSuccess(Unit)
|
||||
} catch (e: Exception) {
|
||||
onError(e.message!!)
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ class WorldViewModel(
|
||||
} else {
|
||||
repository.getSingleWeather(locationName)
|
||||
}
|
||||
onSuccess(Unit)
|
||||
repository.saveCurrentWeatherToRoom(weatherEntity)
|
||||
repository.saveLastSavedAt(weatherEntity.id)
|
||||
} catch (e: IOException) {
|
||||
|
||||
Reference in new issue
Block a user