Closed jednano closed 11 years ago
expect(reporter.alwaysCalledWithExactly('foo')).to.be.ok;
fixes the issue, so it must be this library, right?
From the readme:
Sinon.JS property/method | Sinon–Chai assertion |
---|---|
alwaysCalledWithExactly | spy.should.always.have.been.calledWithExactly(...args) |
Oh! OK – so I had to use the word always
in the chain. I fixed it with...
expect(reporter).to.always.have.been.calledWithExactly('foo');
Thanks.
Example code:
Running the above test gives me the error: