mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2026-03-18 07:26:04 +00:00
Circleci project setup completed
- Add .circleci/config.yml - Errors resolved in atlas weather flavour - continue with Lint errors enabled - update to config.yml
This commit is contained in:
@@ -37,18 +37,16 @@ class WorldViewModelTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun name() {
|
||||
fun fetchDataForSingleLocation_invalidLocation_invalidReturn() {
|
||||
val location = CURRENT_LOCATION
|
||||
|
||||
viewModel.fetchDataForSingleLocation(location)
|
||||
|
||||
assertEquals(viewModel.operationRefresh.getOrAwaitValue()?.getContentIfNotHandled(), true)
|
||||
assertEquals(viewModel.operationRefresh.getOrAwaitValue()?.getContentIfNotHandled(), false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Copyright 2019 Google LLC.
|
||||
SPDX-License-Identifier: Apache-2.0 */
|
||||
fun <T> LiveData<T>.getOrAwaitValue(
|
||||
time: Long = 2,
|
||||
timeUnit: TimeUnit = TimeUnit.SECONDS
|
||||
|
||||
Reference in New Issue
Block a user