Created
July 29, 2012 16:03
-
-
Save yangchenyun/3199904 to your computer and use it in GitHub Desktop.
failed spy work
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
it "should call the given method when parameter is valid", -> | |
sample.calculator('minus', 1) | |
sinon.assert.calledOnce(@[method]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment