From c4d1151fb3e8110eafd12bdadabf9eb69e3978ef Mon Sep 17 00:00:00 2001 From: canyonwan Date: Wed, 6 Apr 2022 21:34:19 +0800 Subject: [PATCH] docs: update features.md (#1114) --- docs/guide/features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/features.md b/docs/guide/features.md index 8d98e3c4f..cd6c50622 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -197,7 +197,7 @@ fn.mockImplementation(arg => arg) fn('world', 2) -expect(fn.mock.returns[1]).toBe('world') +expect(fn.mock.results[1]).toBe('world') ``` Vitest supports both [happy-dom](https://github.com/capricorn86/happy-dom) or [jsdom](https://github.com/jsdom/jsdom) for mocking DOM and browser APIs. They don't come with Vitest, you might need to install them: -- 2.51.2