Skip to content

Commit

Permalink
✅ test: Add tests for getUserSSOProviders and unlinkSSOProvider metho…
Browse files Browse the repository at this point in the history
…ds in ClientService. (lobehub#6335)

Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
  • Loading branch information
gru-agent[bot] authored Feb 20, 2025
1 parent d4b4b28 commit 097038e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/services/user/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,14 @@ describe('ClientService', () => {
expect(spyOn).toHaveBeenCalledWith(newPreference);
expect(spyOn).toHaveBeenCalledTimes(1);
});

it('should return empty array for getUserSSOProviders', async () => {
const providers = await clientService.getUserSSOProviders();
expect(providers).toEqual([]);
});

it('should do nothing when unlinkSSOProvider is called', async () => {
const result = await clientService.unlinkSSOProvider('google', '123');
expect(result).toBeUndefined();
});
});

0 comments on commit 097038e

Please sign in to comment.