renovate/lib/manager/setup-cfg/range.spec.ts
2021-03-02 21:44:55 +01:00

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');
});
});