Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Jun 6, 2024
1 parent e2d08f1 commit eae1f85
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions PapyrusPlugin/Tests/APIMacroTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class APIMacroTests: XCTestCase {
try await provider.request(&req).validate()
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down Expand Up @@ -102,7 +102,7 @@ final class APIMacroTests: XCTestCase {
return try res.decode(String.self, using: req.responseBodyDecoder)
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
var req = provider.newBuilder(method: method, path: path)
req.requestBodyEncoder = .json(JSONEncoder())
req.responseBodyDecoder = .json(JSONDecoder())
Expand Down Expand Up @@ -144,7 +144,7 @@ final class APIMacroTests: XCTestCase {
return try res.decode(String.self, using: req.responseBodyDecoder)
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down Expand Up @@ -183,7 +183,7 @@ final class APIMacroTests: XCTestCase {
return try res.decode(String.self, using: req.responseBodyDecoder)
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down Expand Up @@ -229,7 +229,7 @@ final class APIMacroTests: XCTestCase {
return try res.decode(String.self, using: req.responseBodyDecoder)
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down Expand Up @@ -276,7 +276,7 @@ final class APIMacroTests: XCTestCase {
return try res.decode(String.self, using: req.responseBodyDecoder)
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down Expand Up @@ -316,7 +316,7 @@ final class APIMacroTests: XCTestCase {
try await provider.request(&req).validate()
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
var req = provider.newBuilder(method: method, path: path)
req.keyMapping = .snakeCase
req.requestBodyEncoder = .json(.foo)
Expand Down Expand Up @@ -366,7 +366,7 @@ final class APIMacroTests: XCTestCase {
try await provider.request(&req).validate()
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
var req = provider.newBuilder(method: method, path: path)
req.keyMapping = .snakeCase
req.requestBodyEncoder = .json(.foo)
Expand Down Expand Up @@ -410,7 +410,7 @@ final class APIMacroTests: XCTestCase {
try await provider.request(&req).validate()
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down Expand Up @@ -448,7 +448,7 @@ final class APIMacroTests: XCTestCase {
return try res.decode(String.self, using: req.responseBodyDecoder)
}
private func builder(method: String, path: String) -> RequestBuilder {
private func builder(method: String, path: String) -> Papyrus.RequestBuilder {
provider.newBuilder(method: method, path: path)
}
}
Expand Down

0 comments on commit eae1f85

Please sign in to comment.