mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
18 lines
486 B
TypeScript
18 lines
486 B
TypeScript
import * as runCache from './run';
|
|
|
|
describe('getRepoCache', () => {
|
|
it('returns undefined if not init', () => {
|
|
expect(runCache.get('key1')).toBeUndefined();
|
|
});
|
|
it('sets and gets repo cache', () => {
|
|
runCache.init();
|
|
runCache.set('key2', 'value');
|
|
expect(runCache.get('key2')).toEqual('value');
|
|
});
|
|
it('resets', () => {
|
|
runCache.init();
|
|
runCache.set('key3', 'value');
|
|
runCache.reset();
|
|
expect(runCache.get('key3')).toBeUndefined();
|
|
});
|
|
});
|