Tuesday, October 24, 2017

Jasmine matchers for greater than and less than comparisons

Per this, they are:

  1. .toBeGreaterThan(13);
  2. .toBeLessThan(42);
  3. .not.toBeGreaterThan(69);
  4. .not.toBeLessThan(86);

 
 

Item three here is like less than or equal to and moreover item four above is like greater than or equal to. That is how you would hackily mimic that sort of functionality.

No comments:

Post a Comment