diff --git a/docs/guides/test/spy-on.md b/docs/guides/test/spy-on.md index 003c05d969c35..4d4902f9dde93 100644 --- a/docs/guides/test/spy-on.md +++ b/docs/guides/test/spy-on.md @@ -36,7 +36,7 @@ Once the spy is created, it can be used to write `expect` assertions relating to + test("turtles", ()=>{ + expect(spy).toHaveBeenCalledTimes(0); + leo.sayHi("pizza"); -+ expect(spy).toHaveBeenCalledTimes(0); ++ expect(spy).toHaveBeenCalledTimes(1); + expect(spy.mock.calls).toEqual([[ "pizza" ]]); + }) ```