mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-17 23:53:30 +08:00
docs: tighten kotlin support examples
This commit is contained in:
committed by
Affaan Mustafa
parent
f6a470de63
commit
7433610105
@@ -217,7 +217,7 @@ viewModelScope.launch {
|
||||
```kotlin
|
||||
@Test
|
||||
fun `search updates item list`() = runTest {
|
||||
val fakeRepository = FakeItemRepository(items = testItems)
|
||||
val fakeRepository = FakeItemRepository().apply { emit(testItems) }
|
||||
val viewModel = ItemListViewModel(GetItemsUseCase(fakeRepository))
|
||||
|
||||
viewModel.state.test {
|
||||
|
||||
Reference in New Issue
Block a user