Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed May 11, 2024
1 parent 35a93f3 commit 0d2fca6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct RequestBodyEncoder: IRequestBodyEncoder {
request.httpBody = data
case let .encodable(encodable):
request.httpBody = try jsonEncoder.encode(encodable)
case let .dictonary(dictionary):
case let .dictionary(dictionary):
request.httpBody = try JSONSerialization.data(withJSONObject: dictionary)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ import Foundation
public enum RequestBody {
case data(Data)
case encodable(Encodable)
case dictonary([String: Any])
case dictionary([String: Any])
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// network-layer
// Copyright © 2023 Space Code. All rights reserved.
// Copyright © 2024 Space Code. All rights reserved.
//

import Foundation
Expand Down Expand Up @@ -42,6 +42,7 @@ final class RequestParametersEncoderTests: XCTestCase {
func test_thatRequestParametersEncoderThrowsAnError_whenURLIsNotValid() {
// given
var requestMock = URLRequest.fake(string: .wrongURL)
requestMock.url = nil

// when
var receivedError: NSError?
Expand Down

0 comments on commit 0d2fca6

Please sign in to comment.