Created
July 30, 2018 20:45
-
-
Save ollelauribostrom/a09c949c6ac511854dc8d7c3540e5d40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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