expect.js library has been deprecated in favor of Chaijs.
Please migrate to the k6Chaijs library. The documentation below is retained for historical reasons.
toBeLessThanOrEqual(expectedValue) is a comparison function that evaluates to true or false. It must be called in the chain after the t.expect(value) or .and(value).
toBeLessThanOrEqual is equivalent to received <= expected
When toBeLessThanOrEqual(expectedValue) evaluates to false, the chain is broken, and the test is marked as failed. When the chain is broken, further checks inside of the test are omitted.
|expectedValue||any||The expected value|