toBeGreaterThan has toBeGreaterThan and toBeLessThan .
What if I want to check an integer value in a specific range? Is there something like toBeInBetween matcher?
I can currently solve it with two different expect calls:
var x = 3; expect(x).toBeGreaterThan(1); expect(x).toBeLessThan(10);
javascript assertions testing jasmine
alecxe Feb 26 '15 at 1:21 2015-02-26 01:21
source share