Skip to content

Instantly share code, notes, and snippets.

@intojs
Last active December 4, 2016 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intojs/6cadeb6ad49fe5dbce86a4f88a226cbd to your computer and use it in GitHub Desktop.
Save intojs/6cadeb6ad49fe5dbce86a4f88a226cbd to your computer and use it in GitHub Desktop.
Testing Cheetsheet
/**
* Sinon.
*/
const CATS = ['Sassy', 'Tom'];
function sayMeow(cats) {}
describe('when sayMeow is called', () => {
beforeEach(() => {
sayMeow(CATS);
});
sinon.assert.calledWith(sayMeow, CATS);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment