Skip to content

Commit

Permalink
add != operator bug and todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen committed Feb 8, 2025
1 parent 4b7ecbf commit fb67093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions semver/greater_than_range_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ Deno.test("greaterThanRange() handles equals operator", () => {
assertEquals(greaterThanRange(version, range), false);
});

// BUG `!=` operator type does not exist in semver and should be removed.
// TODO remove this test once `!=` operator is removed.
Deno.test("greaterThanRange() handles not equals operator", () => {
const version = {
major: 1,
Expand Down
1 change: 1 addition & 0 deletions semver/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type ReleaseType =
export type Operator =
| undefined
| "="
// `!=` operator type does not exist in semver and should be removed.
| "!="
| ">"
| ">="
Expand Down

0 comments on commit fb67093

Please # to comment.