From b52cafa7e1b59dac2c0ed3a4dace2814c542819d Mon Sep 17 00:00:00 2001 From: fflorent Date: Sun, 12 Jan 2025 11:42:42 +0100 Subject: [PATCH] SCIM: Remove test for PATCH /me Won't implement this endpoint: https://github.com/scimmyjs/scimmy-routers/issues/27 --- test/server/lib/Scim.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/server/lib/Scim.ts b/test/server/lib/Scim.ts index b836856d53..c6369f053c 100644 --- a/test/server/lib/Scim.ts +++ b/test/server/lib/Scim.ts @@ -222,26 +222,6 @@ describe('Scim', () => { const res = await axios.get(scimUrl('/Me'), anon); assert.equal(res.status, 401); }); - - it.skip('should allow operation like PATCH for kiwi', async function () { - // SKIPPING this test: only the GET verb is currently implemented by SCIMMY for the /Me endpoint. - // Issue created here: https://github.com/scimmyjs/scimmy/issues/47 - const patchBody = { - schemas: ['urn:ietf:params:scim:api:messages:2.0:PatchOp'], - Operations: [{ - op: "replace", - path: 'locale', - value: 'fr', - }], - }; - const res = await axios.patch(scimUrl('/Me'), patchBody, kiwi); - assert.equal(res.status, 200); - assert.deepEqual(res.data, { - ...personaToSCIMMYUserWithId('kiwi'), - locale: 'fr', - preferredLanguage: 'en', - }); - }); }); describe('GET /Users/{id}', function () {