Fix tests

This commit is contained in:
adrinr 2023-03-15 12:27:30 +01:00
parent fc0c4815af
commit e568c5756f
2 changed files with 6 additions and 1 deletions

View File

@ -8,5 +8,5 @@ export const handleScimBody = (ctx: Ctx, next: any) => {
ctx.req.headers["content-type"] = "application/json"
}
next()
return next()
}

View File

@ -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/)
}