mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
24 lines
672 B
TypeScript
24 lines
672 B
TypeScript
import { getConfig } from '../../../../test/util';
|
|
import { GlobalConfig } from '../../../config/global';
|
|
import type { WorkerPlatformConfig } from './apis';
|
|
import { initializeCaches } from './cache';
|
|
|
|
describe('workers/repository/init/cache', () => {
|
|
describe('initializeCaches()', () => {
|
|
let config: WorkerPlatformConfig;
|
|
|
|
beforeEach(() => {
|
|
config = {
|
|
...getConfig(),
|
|
repoFingerprint: '0123456789abcdef',
|
|
defaultBranch: 'main',
|
|
isFork: false,
|
|
};
|
|
GlobalConfig.set({ cacheDir: '' });
|
|
});
|
|
|
|
it('initializes', async () => {
|
|
expect(await initializeCaches(config)).toBeUndefined();
|
|
});
|
|
});
|
|
});
|