- Testsuite expansion

This commit is contained in:
2023-08-12 17:26:56 +01:00
parent 3d7997f623
commit 02808ef165
19 changed files with 445 additions and 325 deletions

View File

@@ -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!!)
}

View File

@@ -52,6 +52,7 @@ class WorldViewModel(
} else {
repository.getSingleWeather(locationName)
}
onSuccess(Unit)
repository.saveCurrentWeatherToRoom(weatherEntity)
repository.saveLastSavedAt(weatherEntity.id)
} catch (e: IOException) {