From 3f963ece2f41664d3d4d3a0392297610ba0176bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Zieli=C5=84ski?= Date: Fri, 25 Nov 2022 09:44:09 +0100 Subject: [PATCH] docs: replace invalid example for 'toBeString' in 'expectTypeOf' API documentation (#2376) --- docs/api/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/api/index.md b/docs/api/index.md index 6e0559f7ba4d..d9683428c1d4 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -2218,10 +2218,9 @@ You cannot use this syntax, when using Vitest as [type checker](/guide/testing-t ```ts import { expectTypeOf } from 'vitest' - expectTypeOf(42).not.toBeArray() - expectTypeOf([]).toBeArray() - expectTypeOf([1, 2]).toBeArray() - expectTypeOf().toBeArray() + expectTypeOf(42).not.toBeString() + expectTypeOf('').toBeString() + expectTypeOf('a').toBeString() ``` ### toBeBoolean