In Jasmine, there are toBeGreaterThan
and toBeLessThan
matchers.
What if I want to check an integer value in a specific range? Is there anything like toBeInBetween
matcher?
Currently, I can solve it in two separate expect
calls:
var x = 3;
expect(x).toBeGreaterThan(1);
expect(x).toBeLessThan(10);
Aucun commentaire:
Enregistrer un commentaire