Skip to content

Instantly share code, notes, and snippets.

@yangchenyun
Created July 29, 2012 16:03
Show Gist options
  • Save yangchenyun/3199904 to your computer and use it in GitHub Desktop.
Save yangchenyun/3199904 to your computer and use it in GitHub Desktop.
failed spy work
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