mirror of https://github.com/renovatebot/renovate
17 lines
444 B
TypeScript
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);
|
|
});
|
|
});
|