Added a DocC catalog coverage check.
This commit is contained in:
1 parent
2cfacd0e14
commit
ff00fdd852
9 files changed
+134
-42
No files matched your search
@@ -47,17 +47,14 @@ struct BearerAuthMiddlewareTests {
|
||||
let middleware = BearerAuthMiddleware(token: .Token.jwt)
|
||||
let requestBody: HTTPBody = HTTPBody("request-body")
|
||||
|
||||
var receivedBody: HTTPBody?
|
||||
|
||||
_ = try await middleware.intercept(
|
||||
// The next handler echoes the body back, so the test can read it.
|
||||
let (_, receivedBody) = try await middleware.intercept(
|
||||
.get,
|
||||
body: requestBody,
|
||||
baseURL: .base,
|
||||
operationID: "createApp",
|
||||
next: { _, body, _ in
|
||||
receivedBody = body
|
||||
|
||||
return (HTTPResponse(status: .created), nil)
|
||||
(HTTPResponse(status: .created), body)
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user