Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
dogo committed Dec 21, 2023
1 parent 729ead1 commit 6652c90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions SWDestinyTradesTests/Mock/URLSessionMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ final class URLProtocolMock: URLProtocol {

do {
guard var urlRequest = try Self.response?(request) else {
client?.urlProtocol(self, didFailWithError: NSError(domain: "MyErrorDomain",
code: 1,
userInfo: ["reason": "Response creation failed"]))
return
}

Expand Down
2 changes: 1 addition & 1 deletion SWDestinyTradesTests/Rest/HttpClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ final class HttpClientTests: XCTestCase {
_ = try await sut.request(request, decode: Foo.self)
XCTFail("Expected to throw while awaiting, but succeeded")
} catch {
// XCTAssertEqual(error as? APIError, .typeMismatch(type: Bool.self, context: "Expected to decode Bool but found a string instead."))
// XCTAssertEqual(error as? APIError, .valueNotFound(type: Foo.self, context: "Value for 'Foo' could not be decoded."))
}
}

Expand Down

0 comments on commit 6652c90

Please sign in to comment.