Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/FTAPIKit/APIError+Standard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ public enum APIErrorStandard: APIError {
}
}

public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
public static let unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
}
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/AsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class AsyncTests: XCTestCase {
XCTAssertEqual(user, response.json)
}

static var allTests = [
static let allTests = [
("testCallWithoutResponse", testCallWithoutResponse),
("testCallWithData", testCallWithData),
("testCallParsingResponse", testCallParsingResponse)
Expand Down
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/Mockups/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ struct ThrowawayAPIError: APIError {
self.init()
}

static var unhandled = Self()
static let unhandled = Self()
}
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/ResponseTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ final class ResponseTests: XCTestCase {
wait(for: [expectation], timeout: timeout)
}

static var allTests = [
static let allTests = [
("testGet", testGet),
("testClientError", testClientError),
("testServerError", testServerError),
Expand Down
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/URLQueryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class URLQueryTests: XCTestCase {
XCTAssertEqual(query.percentEncoded, "a=&b=")
}

static var allTests = [
static let allTests = [
("testSpaceEncoding", testSpaceEncoding),
("testDelimitersEncoding", testDelimitersEncoding),
("testQueryAppending", testQueryAppending),
Expand Down