mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-01 18:19:51 +00:00
25 lines
661 B
TypeScript
25 lines
661 B
TypeScript
import git from '.';
|
|
|
|
describe('versioning/git/index', () => {
|
|
describe('isValid(version)', () => {
|
|
it('should return true', () => {
|
|
expect(git.isValid('a1')).toBeTruthy();
|
|
});
|
|
});
|
|
describe('isCompatible(version)', () => {
|
|
it('should return true', () => {
|
|
expect(git.isCompatible('')).toBeTruthy();
|
|
});
|
|
});
|
|
describe('isGreaterThan(version1, version2)', () => {
|
|
it('should return false', () => {
|
|
expect(git.isGreaterThan('', '')).toBeFalsy();
|
|
});
|
|
});
|
|
describe('valueToVersion(version)', () => {
|
|
it('should return same as input', () => {
|
|
expect(git.valueToVersion('')).toBe('');
|
|
});
|
|
});
|
|
});
|