Skip to content

Commit

Permalink
Use available API
Browse files Browse the repository at this point in the history
  • Loading branch information
dus7 committed Nov 15, 2024
1 parent f1c1427 commit 2a6a343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGoTests/NewTabPageControllerPixelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class NewTabPageControllerPixelTests: XCTestCase {

sut.viewDidAppear(false)

let count = PixelFiringMock.allPixelsFired.count { $0.pixelName == Pixel.Event.homeScreenShown.name }
let count = PixelFiringMock.allPixelsFired.filter { $0.pixelName == Pixel.Event.homeScreenShown.name }.count

XCTAssertEqual(count, 1)
}
Expand All @@ -68,7 +68,7 @@ final class NewTabPageControllerPixelTests: XCTestCase {

sut.viewDidAppear(false)

let count = PixelFiringMock.allPixelsFired.count { $0.pixelName == Pixel.Event.homeScreenShown.name }
let count = PixelFiringMock.allPixelsFired.filter { $0.pixelName == Pixel.Event.homeScreenShown.name }.count

XCTAssertEqual(count, 0)
}
Expand Down

0 comments on commit 2a6a343

Please sign in to comment.