Created
April 28, 2020 01:51
-
-
Save TenzenIga/5a61eb15db1154d9d842a5ec8b6d1125 to your computer and use it in GitHub Desktop.
isEven.test.ts
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
describe('isEven', ()=>{ | |
it('Returns True if **num** is even', ()=>{ | |
const result = isEven(2); | |
expect(result).toBeTruthy() | |
}) | |
it('Returns False if **num** is odd', ()=>{ | |
const result = isEven(1); | |
expect(result).toBeFalsy() | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment