Last active
December 4, 2016 21:12
-
-
Save intojs/6cadeb6ad49fe5dbce86a4f88a226cbd to your computer and use it in GitHub Desktop.
Testing Cheetsheet
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
/** | |
* 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