From a509dc1739434541df31a0bae2cc1ce629eea7b2 Mon Sep 17 00:00:00 2001 From: adrinr Date: Mon, 13 Mar 2023 17:44:29 +0100 Subject: [PATCH] Add find endpoint tests --- packages/worker/src/tests/api/scim/users.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/worker/src/tests/api/scim/users.ts b/packages/worker/src/tests/api/scim/users.ts index 34fdf5f95a..3daf0f4fad 100644 --- a/packages/worker/src/tests/api/scim/users.ts +++ b/packages/worker/src/tests/api/scim/users.ts @@ -57,6 +57,15 @@ export class ScimUsersAPI extends TestAPI { return res.body as ScimUserResponse } + find = async (id: string, requestSettings?: Partial) => { + const res = await this.#createRequest( + `/api/global/scim/v2/users/${id}`, + "get", + requestSettings + ) + return res.body as ScimUser + } + post = async ( { body,