From 4d32c50f9c1b5e544954ad3522297c6339be3783 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Sun, 30 Apr 2017 23:21:21 -0400 Subject: [PATCH] Add a test showing that #94 is not a problem --- test/regressions.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/regressions.coffee b/test/regressions.coffee index 5618129..01b5577 100644 --- a/test/regressions.coffee +++ b/test/regressions.coffee @@ -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()