0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/versioning/semver/common.spec.ts
2023-04-28 04:33:15 +00:00

17 lines
444 B
TypeScript

import { isSemVerXRange } from './common';
describe('modules/versioning/semver/common', () => {
it.each`
range | expected
${'*'} | ${true}
${'x'} | ${true}
${'X'} | ${true}
${''} | ${true}
${'1'} | ${false}
${'1.2'} | ${false}
${'1.2.3'} | ${false}
`('isSemVerXRange("range") === $expected', ({ range, expected }) => {
expect(isSemVerXRange(range)).toBe(expected);
});
});