Skip to content

Instantly share code, notes, and snippets.

@fiWhy
Created July 9, 2020 18:36
Embed
What would you like to do?
Mocha Spec File
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