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