Skip to content

toBeInRange bug in implementation #670

Open
@lcialon

Description

@lcialon

Bug in the implementation of toBeInRange. @mayankshukla94
expect([1,2,3]).toBeInRange(1,3) // This should return pass according to documentation
From doc:
Use .toBeInRange when checking if an array has elements in range min (inclusive) and max (inclusive).

But in the code max value is exclusive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions