mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 13:27:03 +05:30
fix(api): refresh hottest posts golden snapshot
This commit is contained in:
parent
38830cee53
commit
94ccda61f6
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ class ApiTest {
|
||||||
val posts = api.getHottestPosts(1)
|
val posts = api.getHottestPosts(1)
|
||||||
assertIs<Success<List<LobstersPost>>>(posts)
|
assertIs<Success<List<LobstersPost>>>(posts)
|
||||||
val commentsOnlyPosts = posts.value.asSequence().filter { it.url.isEmpty() }.toSet()
|
val commentsOnlyPosts = posts.value.asSequence().filter { it.url.isEmpty() }.toSet()
|
||||||
assertThat(commentsOnlyPosts).hasSize(1)
|
assertThat(commentsOnlyPosts).hasSize(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue