Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Jun 26, 2024
1 parent eb4263a commit ab11ace
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/__tests__/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ describe('versionGreaterOrEqualThan', () => {
test('can compare pre parts', () => {
const v1 = parseVersion('1.2.3-1');
const v2 = parseVersion('1.2.3-2');
expect(versionGreaterOrEqualThan(v1, v2)).toBe(false);
expect(versionGreaterOrEqualThan(v2, v1)).toBe(true);
expect(v1).not.toBeNull();
expect(v2).not.toBeNull();
expect(versionGreaterOrEqualThan(v1 as SemVer, v2 as SemVer)).toBe(false);
expect(versionGreaterOrEqualThan(v2 as SemVer, v1 as SemVer)).toBe(true);
});

test('throws an exception if there are build parts', () => {
Expand Down

0 comments on commit ab11ace

Please sign in to comment.