From c325f409dc53c99e0c2f6cf07016db35370abbe2 Mon Sep 17 00:00:00 2001 From: Michael Cousins Date: Mon, 4 Nov 2024 11:08:33 -0500 Subject: [PATCH] fixup: docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 683a859..54edb05 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ By default, if arguments do not match, a vitest-when stub will no-op and return ```ts const spy = vi.fn().mockReturnValue('you messed up!') -subject.when(spy).calledWith('hello').thenReturn('world') +when(spy).calledWith('hello').thenReturn('world') spy('hello') // "world" spy('jello') // "you messed up!"