From 2a6a343b9c5d740deb61456d0d2027c11902a170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20=C5=9Apiewak?= Date: Fri, 15 Nov 2024 13:56:15 +0100 Subject: [PATCH] Use available API --- DuckDuckGoTests/NewTabPageControllerPixelTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGoTests/NewTabPageControllerPixelTests.swift b/DuckDuckGoTests/NewTabPageControllerPixelTests.swift index c3bc2f9c94..be66b23ad0 100644 --- a/DuckDuckGoTests/NewTabPageControllerPixelTests.swift +++ b/DuckDuckGoTests/NewTabPageControllerPixelTests.swift @@ -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) } @@ -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) }