Skip to content

Instantly share code, notes, and snippets.

@ollelauribostrom
Created July 30, 2018 20:45
Show Gist options
  • Save ollelauribostrom/a09c949c6ac511854dc8d7c3540e5d40 to your computer and use it in GitHub Desktop.
Save ollelauribostrom/a09c949c6ac511854dc8d7c3540e5d40 to your computer and use it in GitHub Desktop.
import inRange from '../src/inRange';
describe('{unit}: Testing inRange', () => {
it('should return true if in range', () => {
expect(inRange({ number: 5, low: 0, high: 10 })).toEqual(true);
});
it('should return false if not in range', () => {
expect(inRange({ number: 1, low: 5, high: 10 })).toEqual(false);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment