lightsofapollo / sinon-expect

Sinon Matchers for expect.
MIT License
13 stars 2 forks source link

Expectation negation #5

Open ELLIOTTCABLE opened 8 years ago

ELLIOTTCABLE commented 8 years ago

So, I swear I've done this before, but … it doesn't seem to be working:

expect(method).was.not.calledWith foo

Is negation (.not) not supported on Sinon-stuff? (.notCalledWith doesn't work either!)

ELLIOTTCABLE commented 7 years ago

To my original question, .neverCalledWith works — but unfortunately, there's no .neverCalledOn; so I'm still looking for support for the .not-negated matchers — .not.calledWith should replace .neverCalledWith, and .not.calledOn should exist as well.