Skip to content

Instantly share code, notes, and snippets.

@arkivanov
Created July 28, 2020 11:44
Show Gist options
  • Save arkivanov/38eac002fd6811437693b6dbab34dfb1 to your computer and use it in GitHub Desktop.
Save arkivanov/38eac002fd6811437693b6dbab34dfb1 to your computer and use it in GitHub Desktop.
KittenComponentTest4
@Test
fun reloads_images_WHEN_Event_RefreshTriggered() {
dataSource.generateImages()
startComponent()
val newImages = dataSource.generateImages()
view.dispatch(Event.RefreshTriggered)
assertEquals(newImages, view.model.imageUrls)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment