mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
14 lines
451 B
TypeScript
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');
|
|
});
|
|
});
|