persona-community-5/.pnpm-store/v3/files/90/6311a5428907999c85b1954cd2e4177df2d1b9f821e6fb5f65f9e67b6bfcfa1fb013f9387420df8127e0f2c32ad0a30436b093697112a613511cf3ec3a2eba
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

18 lines
548 B
Plaintext

import { RedoclyClient } from '../redocly';
describe.skip('login', () => {
it('should call login with setAccessTokens function', async () => {
const client = new RedoclyClient();
Object.defineProperty(client, 'registryApi', {
value: {
setAccessTokens: jest.fn(),
authStatus: jest.fn(() => true),
},
writable: true,
configurable: true,
});
await client.login('token'); // TODO: bug with rewrite local config file
expect(client.registryApi.setAccessTokens).toHaveBeenCalled();
});
});