Skip to content

Commit

Permalink
test(satisfies): add multiple OR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omichelsen committed Jul 7, 2023
1 parent 409e17f commit 3e1d6e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/satisfies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ describe('satisfies versions', () => {
['1.5.1', '1.2.3 - 2.3.4', true],
['2.3.4', '1.2.3 - 2.3.4', true],
['2.4.0', '1.2.3 - 2.3.4', false],
['12.25.0', '^12.22.0 || ^14.17.0 || >=16.0.0', true],
['14.25.0', '^12.22.0 || ^14.17.0 || >=16.0.0', true],
['17', '^12.22.0 || ^14.17.0 || >=16.0.0', true],
['15', '^12.22.0 || ^14.17.0 || >=16.0.0', false],
]);
});

Expand Down

0 comments on commit 3e1d6e2

Please sign in to comment.