Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Aug 30, 2024
1 parent 0089d26 commit 04f3ee6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,11 @@ final class BookmarkAllTabsDialogViewModelTests: XCTestCase {
@MainActor
func testWhenFoldersStoreLastUsedFolderIsNotNilAndBookmarkStoreDoesNotContainFolderThenSelectedFolderIsNil() throws {
// GIVEN
let folder = BookmarkFolder(id: "1", title: #function)
foldersStoreMock.lastBookmarkAllTabsFolderIdUsed = "1"
bookmarkStoreMock.bookmarkFolderWithId = {
XCTAssertNotEqual($0, folder.id)
XCTAssertEqual($0, "1")
return nil
}
bookmarkStoreMock.bookmarks = [folder]
bookmarkManager.loadBookmarks()
let websitesInfo = WebsiteInfo.makeWebsitesInfo(url: .duckDuckGo)
let sut = BookmarkAllTabsDialogViewModel(websites: websitesInfo, foldersStore: foldersStoreMock, bookmarkManager: bookmarkManager)
Expand Down

0 comments on commit 04f3ee6

Please sign in to comment.