Skip to content

Commit

Permalink
🐛 fix(CompanyContentViewControllerSnapshotTests.swift): update Compan…
Browse files Browse the repository at this point in the history
…yContentViewController instantiation
  • Loading branch information
WezSieTato committed May 6, 2024
1 parent f81871b commit 2ccd30c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ final class CompanyContentViewControllerSnapshotTests: XCTestCase {
}

private func testView(data: CodeData, enableDarkMode: Bool = false, file: StaticString = #file, testName: String = #function, line: UInt = #line) {
let sut = CompanyContentViewController(result: data.scanResult)
let sut = CompanyContentViewController(
result: data.scanResult,
analyticsProvider: AnalyticsProviderMock()
)

if enableDarkMode, #available(iOS 13.0, *) {
sut.overrideUserInterfaceStyle = .dark
Expand Down

0 comments on commit 2ccd30c

Please sign in to comment.