Skip to content

Commit 9754f12

Browse files
committed
test(shared): cover explicit zero-patch caret bounds
1 parent 15b86b4 commit 9754f12

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/shared/src/semver.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ describe("semver helpers", () => {
6969
expect(satisfiesSemverRange("0.5.0", "^0.2.3")).toBe(false);
7070
expect(satisfiesSemverRange("0.0.3", "^0.0.3")).toBe(true);
7171
expect(satisfiesSemverRange("0.0.4", "^0.0.3")).toBe(false);
72+
expect(satisfiesSemverRange("0.0.0", "^0.0.0")).toBe(true);
73+
expect(satisfiesSemverRange("0.0.1", "^0.0.0")).toBe(false);
7274
});
7375

7476
it("keeps the range checker stringifiable and executable as plain JavaScript", () => {

0 commit comments

Comments
 (0)