renovate/lib/modules/manager/pip_requirements/range.spec.ts
2022-04-12 14:49:49 +00:00

14 lines
451 B
TypeScript

import type { RangeConfig } from '../types';
import { getRangeStrategy } from '.';
describe('modules/manager/pip_requirements/range', () => {
it('returns same if not auto', () => {
const config: RangeConfig = { rangeStrategy: 'widen' };
expect(getRangeStrategy(config)).toBe('widen');
});
it('pins if auto', () => {
const config: RangeConfig = { rangeStrategy: 'auto' };
expect(getRangeStrategy(config)).toBe('pin');
});
});