This commit is contained in:
adrinr 2023-03-13 17:46:29 +01:00
parent afdefce55d
commit 263d3613be
1 changed files with 9 additions and 0 deletions

View File

@ -216,5 +216,14 @@ describe("/api/global/scim/v2/users", () => {
expect(response).toEqual(user)
})
it("should return 404 when requesting unexisting user id", async () => {
const response = await findScimUser(structures.uuid(), { expect: 404 })
expect(response).toEqual({
message: "missing",
status: 404,
})
})
})
})