From 6dbf89f39d72dc11428e814594a2a50cf97a5c5a Mon Sep 17 00:00:00 2001 From: Mathias Schreck Date: Fri, 21 Jan 2022 21:10:19 +0100 Subject: [PATCH] Add documentation for assert.calledOnceWithMatch --- docs/release-source/release/assertions.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/release-source/release/assertions.md b/docs/release-source/release/assertions.md index acf4a9b60..ace751ad5 100644 --- a/docs/release-source/release/assertions.md +++ b/docs/release-source/release/assertions.md @@ -119,6 +119,12 @@ This behaves the same way as `sinon.assert.calledWith(spy, sinon.match(arg1), si It's possible to assert on a dedicated spy call: `sinon.assert.calledWithMatch(spy.secondCall, arg1, arg2, ...);`. +#### `sinon.assert.calledOnceWithMatch(spyOrSpyCall, arg1, arg2, ...)` + +Passes if `spy` was called once and only once with matching arguments. + +It's possible to assert on a dedicated spy call: `sinon.assert.calledOnceWithMatch(spy.secondCall, arg1, arg2, ...);`. + #### `sinon.assert.alwaysCalledWithMatch(spy, arg1, arg2, ...)` Passes if `spy` was always called with matching arguments.