Created
January 23, 2018 09:38
-
-
Save asci/3e6ccf50bfc4dea62824c8aebf866cd6 to your computer and use it in GitHub Desktop.
Mocha cheatsheet
This file contains hidden or 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
// return resolved promise | |
sandbox.stub(Obj, 'method').resolves(value); | |
// return rejected promise | |
sandbox.stub(Obj, 'method').rejects(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment