From 04f3ee637a8524dc39d898797bcea2ad8c83a44f Mon Sep 17 00:00:00 2001 From: Alexey Martemyanov Date: Fri, 30 Aug 2024 16:02:09 +0600 Subject: [PATCH] fix test --- .../ViewModels/BookmarkAllTabsDialogViewModelTests.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UnitTests/Bookmarks/ViewModels/BookmarkAllTabsDialogViewModelTests.swift b/UnitTests/Bookmarks/ViewModels/BookmarkAllTabsDialogViewModelTests.swift index aed6e159ac..b75bef133d 100644 --- a/UnitTests/Bookmarks/ViewModels/BookmarkAllTabsDialogViewModelTests.swift +++ b/UnitTests/Bookmarks/ViewModels/BookmarkAllTabsDialogViewModelTests.swift @@ -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)