renovate/lib/workers/repository/init/cache.spec.ts
Maksim 06d8c27043
refactor: global config (#12743)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-23 21:10:45 +01:00

16 lines
514 B
TypeScript

import { RenovateConfig, getConfig } from '../../../../test/util';
import { GlobalConfig } from '../../../config/global';
import { initializeCaches } from './cache';
describe('workers/repository/init/cache', () => {
describe('initializeCaches()', () => {
let config: RenovateConfig;
beforeEach(() => {
config = { ...getConfig() };
GlobalConfig.set({ cacheDir: '' });
});
it('initializes', async () => {
expect(await initializeCaches(config)).toBeUndefined();
});
});
});