Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GianniCarlo committed Sep 10, 2024
1 parent c13126f commit 40cd094
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BookPlayerTests/Services/LibraryServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1085,8 +1085,8 @@ class ModifyLibraryTests: LibraryServiceTests {
self.sut.reorderItem(
with: book3.relativePath,
inside: nil,
sourceIndexPath: IndexPath(row: 0, section: .data),
destinationIndexPath: IndexPath(row: 2, section: .data)
sourceIndexPath: IndexPath(row: 0, section: 0),
destinationIndexPath: IndexPath(row: 2, section: 0)
)

let sortedContents = sut.fetchContents(at: nil, limit: nil, offset: nil)
Expand All @@ -1106,8 +1106,8 @@ class ModifyLibraryTests: LibraryServiceTests {
self.sut.reorderItem(
with: book3.relativePath,
inside: folder.relativePath,
sourceIndexPath: IndexPath(row: 2, section: .data),
destinationIndexPath: IndexPath(row: 0, section: .data)
sourceIndexPath: IndexPath(row: 2, section: 0),
destinationIndexPath: IndexPath(row: 0, section: 0)
)

let sortedFolderContents = sut.fetchContents(at: folder.relativePath, limit: nil, offset: nil)
Expand Down

0 comments on commit 40cd094

Please sign in to comment.