Skip to content

Commit

Permalink
SCIM: Remove test for PATCH /me
Browse files Browse the repository at this point in the history
Won't implement this endpoint: scimmyjs/scimmy-routers#27
  • Loading branch information
fflorent committed Jan 31, 2025
1 parent 6b935b7 commit cc02645
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/server/lib/Scim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit cc02645

Please sign in to comment.