Skip to content

Commit

Permalink
tests: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OxygenCobalt committed Dec 23, 2023
1 parent 3f1f2f5 commit c1fc548
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ class DeviceLibraryTest {
mockk<SongImpl> {
every { uid } returns songUidA
every { durationMs } returns 0
every { path } returns Path(mockk(), Components.parse("./"))
every { path } returns Path(mockk(), Components.parseUnix("./"))
every { finalize() } returns this
}
val songB =
mockk<SongImpl> {
every { uid } returns songUidB
every { durationMs } returns 1
every { path } returns Path(mockk(), Components.parse("./"))
every { path } returns Path(mockk(), Components.parseUnix("./"))
every { finalize() } returns this
}
val deviceLibrary = DeviceLibraryImpl(listOf(songA, songB), listOf(), listOf(), listOf())
Expand Down Expand Up @@ -160,13 +160,13 @@ class DeviceLibraryTest {
val songA =
mockk<SongImpl> {
every { uid } returns Music.UID.auxio(MusicType.SONGS)
every { path } returns Path(mockk(), Components.parse("./"))
every { path } returns Path(mockk(), Components.parseUnix("./"))
every { finalize() } returns this
}
val songB =
mockk<SongImpl> {
every { uid } returns Music.UID.auxio(MusicType.SONGS)
every { path } returns Path(mockk(), Components.parse("./"))
every { path } returns Path(mockk(), Components.parseUnix("./"))
every { finalize() } returns this
}
val album =
Expand Down

0 comments on commit c1fc548

Please sign in to comment.