0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/workers/repository/init/cache.spec.ts
2023-06-15 04:33:56 +00:00

28 lines
835 B
TypeScript

import { partial } from '../../../../test/util';
import { GlobalConfig } from '../../../config/global';
import type { RepositoryCacheConfig } from '../../../config/types';
import type { WorkerPlatformConfig } from './apis';
import { initializeCaches } from './cache';
describe('workers/repository/init/cache', () => {
describe('initializeCaches()', () => {
let config: WorkerPlatformConfig;
beforeEach(() => {
config = {
repository: '',
repositoryCache: partial<RepositoryCacheConfig>(),
repositoryCacheType: 'local',
repoFingerprint: '0123456789abcdef',
defaultBranch: 'main',
isFork: false,
};
GlobalConfig.set({ cacheDir: '' });
});
it('initializes', async () => {
expect(await initializeCaches(config)).toBeUndefined();
});
});
});