mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-03-18 15:36:04 +00:00
- Testsuite expansion
This commit is contained in:
@@ -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