Skip to content

Instantly share code, notes, and snippets.

@fiWhy
Created July 9, 2020 18:36
Show Gist options
  • Save fiWhy/eb1b0ffad4bb0dd4d29c5ac06fb8ea88 to your computer and use it in GitHub Desktop.
Save fiWhy/eb1b0ffad4bb0dd4d29c5ac06fb8ea88 to your computer and use it in GitHub Desktop.
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