Skip to content

Commit

Permalink
fix: test fail on GetChapterListUseCaseList
Browse files Browse the repository at this point in the history
  • Loading branch information
isfaaghyth committed Aug 24, 2024
1 parent 6c21dff commit 1fb9977
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class GetChapterListUseCaseList {

@Test
fun `invoked should return a list of ChapterModel with absolute chapter`() {
val useCase = GetChapterListUseCase()
val expected = listOf(
ChapterModel(540, "GDG Bali"),
ChapterModel(577, "GDG Jogjakarta"),
Expand All @@ -22,6 +21,7 @@ class GetChapterListUseCaseList {
ChapterModel(1332, "GDG Medan")
)

val useCase: GetChapterListUseCase = GetChapterListUseCaseImpl()
assertEquals(expected, useCase())
}
}

0 comments on commit 1fb9977

Please sign in to comment.