diff --git a/core/testing/src/main/kotlin/com/google/samples/apps/nowinandroid/core/testing/repository/TestSearchContentsRepository.kt b/core/testing/src/main/kotlin/com/google/samples/apps/nowinandroid/core/testing/repository/TestSearchContentsRepository.kt index 94ef2e384..4a3baba44 100644 --- a/core/testing/src/main/kotlin/com/google/samples/apps/nowinandroid/core/testing/repository/TestSearchContentsRepository.kt +++ b/core/testing/src/main/kotlin/com/google/samples/apps/nowinandroid/core/testing/repository/TestSearchContentsRepository.kt @@ -55,5 +55,5 @@ class TestSearchContentsRepository : SearchContentsRepository { * Test only method to add the news resources to the stored list in memory */ fun addNewsResources(newsResources: List) = - cachedNewsResources.update { newsResources } + cachedNewsResources.update { it + newsResources } }