Skip to content

Commit

Permalink
refactor: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-ossai-cko committed Mar 20, 2024
1 parent 13a8726 commit 9c654ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tests/RiskTests/DeviceDataServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ class DeviceDataServiceTests: XCTestCase {
mockAPIService.expectedResult = .success(expectedApiConfiguration)

deviceDataService.getConfiguration { configuration in
XCTAssertEqual(configuration, .success(expectedDeviceDataServiceConfiguration))
switch configuration {
case .success(let result):
XCTAssertEqual(result.publicKey, expectedDeviceDataServiceConfiguration.publicKey)
case .failure:
return
}
expectation.fulfill()
}

Expand Down

0 comments on commit 9c654ff

Please sign in to comment.