mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 01:37:24 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
18 lines
554 B
TypeScript
18 lines
554 B
TypeScript
import type { RangeConfig } from '../types.ts';
|
|
import { getRangeStrategy } from './index.ts';
|
|
|
|
describe('modules/manager/nix/range', () => {
|
|
it('returns replace if currentValue not null', () => {
|
|
const config: RangeConfig = {
|
|
rangeStrategy: 'auto',
|
|
currentValue: '1.0.0',
|
|
};
|
|
expect(getRangeStrategy(config)).toBe('replace');
|
|
});
|
|
|
|
it('defaults to update-lockfile', () => {
|
|
const config: RangeConfig = { rangeStrategy: 'auto', depType: 'require' };
|
|
expect(getRangeStrategy(config)).toBe('update-lockfile');
|
|
});
|
|
});
|