From 1f0e7a67334bcc137835e15a6ae1564c5e95dbd5 Mon Sep 17 00:00:00 2001 From: Caroline Borg Date: Mon, 27 Jan 2025 10:29:09 +0100 Subject: [PATCH] Fix incorrect reset-call in README There's a typ here - the function that resets both are just `reset`. https://github.com/sinonjs/sinon/blob/main/lib/sinon/stub.js#L202 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 202fe9e..74a1ba7 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ jest.spyOn(someObject, 'aMethod'); reset both, history and behavior: ```js -stub.resetHistory(); +stub.reset(); ``` reset call history: