Skip to content

Commit

Permalink
Add a test showing that #94 is not a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed May 1, 2017
1 parent f0628a1 commit 4d32c50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/regressions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ describe "Regressions", ->
spy()

expect(-> spy.should.have.been.called).to.not.throw()

specify "GH-94: assertions on calls", ->
func = ->
spy = sinon.spy(func)

spy(1, 2, 3)
spy(4, 5, 6)

expect(-> spy.lastCall.should.have.been.calledWith(4, 5, 6)).to.not.throw()

0 comments on commit 4d32c50

Please sign in to comment.