Created
July 9, 2020 18:36
-
-
Save fiWhy/eb1b0ffad4bb0dd4d29c5ac06fb8ea88 to your computer and use it in GitHub Desktop.
Mocha Spec File
This file contains 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('createMonster', () => { | |
it('should create monster object', () => { | |
const monster = { | |
id: 1, | |
userId: 1, | |
name: 'Ktulhu', | |
superpower: 'Oops', | |
area: 'Cave', | |
}; | |
expect(createMonster(1, 'Ktulhu', 'Oops', 'Cave')).to.deep.equal(monster); | |
}); | |
}); | |
describe('Math', () => { | |
it('should do pow', () => { | |
expect(1).to.equal(1); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment