0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/versioning/pvp/range.spec.ts
Janus Troelsen 2f805f4b7d
feat(versioning): add PVP versioning scheme (#32298)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-06 10:21:07 +00:00

13 lines
361 B
TypeScript

import { parseRange } from './range';
describe('modules/versioning/pvp/range', () => {
describe('.parseRange(range)', () => {
it('should parse >=1.0 && <1.1', () => {
const parsed = parseRange('>=1.0 && <1.1');
expect(parsed).not.toBeNull();
expect(parsed!.lower).toBe('1.0');
expect(parsed!.upper).toBe('1.1');
});
});
});