renovate/lib/modules/versioning/pvp/range.spec.ts

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