Fix tests
This commit is contained in:
parent
fc0c4815af
commit
e568c5756f
|
@ -8,5 +8,5 @@ export const handleScimBody = (ctx: Ctx, next: any) => {
|
|||
ctx.req.headers["content-type"] = "application/json"
|
||||
}
|
||||
|
||||
next()
|
||||
return next()
|
||||
}
|
||||
|
|
|
@ -28,6 +28,11 @@ export class ScimUsersAPI extends TestAPI {
|
|||
const { expect, setHeaders } = { ...defaultConfig, ...requestSettings }
|
||||
let request = this.request[method](url).expect(expect)
|
||||
|
||||
request = request.set(
|
||||
"content-type",
|
||||
"application/scim+json; charset=utf-8"
|
||||
)
|
||||
|
||||
if (method !== "delete") {
|
||||
request = request.expect("Content-Type", /json/)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue