Skip to content

Commit

Permalink
Test failure fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrba committed May 2, 2024
1 parent b14f651 commit 8a129d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DuckDuckGo/Application/DockPositionProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ enum DockApp: String, CaseIterable {
case arc = "/Applications/Arc.app/"
case safari = "/Applications/Safari.app/"
case safariLong = "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/"
case unknown = ""

var url: URL {
return URL(string: "file://" + self.rawValue)!
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/App/DockPositionProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DockPositionProviderTests: XCTestCase {

func testWhenAppDefaultBrowser_ThenIndexBasedOnThePrefferedOrder() {
mockBrowserProvider.isDefault = true
let currentApps = [DockApp.firefox.url, DockApp.edge.url, DockApp.safari.url]
let currentApps = [DockApp.firefox.url, DockApp.opera.url, DockApp.safari.url]
let index = provider.newDockIndex(from: currentApps)

XCTAssertEqual(index, 1, "The new app should be placed based on the order Preference - next To Firefox).")
Expand Down

0 comments on commit 8a129d4

Please sign in to comment.