- Testsuite expansion

This commit is contained in:
hmalik144 committed 2023-08-12 17:26:56 +01:00
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) {