Skip to content

Commit

Permalink
Make max as inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankshukla94 committed Nov 8, 2023
1 parent 711fdcc commit c5a9731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matchers/toBeInRange.js
@@ -1,7 +1,7 @@
export function toBeInRange(actual, min, max) {
const { printReceived, printExpected, matcherHint } = this.utils;

const element = actual.find(option => option < min || option >= max);
const element = actual.find(option => option < min || option > max);

const pass = element === undefined;

Expand Down

0 comments on commit c5a9731

Please sign in to comment.