文件操作 - login.test.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/src/__tests__/login.test.ts
编辑文件内容
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(); }); });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件