Skip to content

Instantly share code, notes, and snippets.

@TenzenIga
Created April 28, 2020 01:51
Show Gist options
  • Save TenzenIga/5a61eb15db1154d9d842a5ec8b6d1125 to your computer and use it in GitHub Desktop.
Save TenzenIga/5a61eb15db1154d9d842a5ec8b6d1125 to your computer and use it in GitHub Desktop.
isEven.test.ts
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