docs/concepts/spies/api/never-called-with-match.md
spy.neverCalledWithMatchReturns true, when the fake, spy or stub was never called with matching arguments.
This behaves the same as spy.neverCalledWith(sinon.match(arg1), sinon.match(arg2), ...).
<<< ../../../.vitepress/tests/docs/spies/api/never-called-with-match.test.js
neverCalledWithMatch to defaultYou can reset neverCalledWithMatch in three different ways:
spy.neverCalledWithMatchReturns true, when the fake, spy or stub was always called with matching arguments (and possibly others).
This behaves the same as spy.alwaysCalledWith(sinon.match(arg1), sinon.match(arg2), ...).
import * as sinon from "sinon";
const spy = sinon.spy();
const object = {
a: 1,
b: 2,
c: 3
};
spy(object);
spy.neverCalledWithMatch({ b: 2 });
// => true
spy(object);
spy.neverCalledWithMatch({ b: 2 });
// => true
spy("apple pie");
spy.neverCalledWithMatch({ b: 2 });
// => false
neverCalledWithMatch to defaultYou can reset neverCalledWithMatch in three different ways: