mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
13 lines
442 B
TypeScript
13 lines
442 B
TypeScript
import type { RangeConfig } from '../types';
|
|
import { getRangeStrategy } from '.';
|
|
|
|
describe('getRangeStrategy', () => {
|
|
it('returns same if not auto', () => {
|
|
const config: RangeConfig = { rangeStrategy: 'widen' };
|
|
expect(getRangeStrategy(config)).toEqual('widen');
|
|
});
|
|
it('replaces if auto', () => {
|
|
const config: RangeConfig = { rangeStrategy: 'auto' };
|
|
expect(getRangeStrategy(config)).toEqual('replace');
|
|
});
|
|
});
|