Skip to content

Commit

Permalink
docs: replace invalid example for 'toBeString' in 'expectTypeOf' API …
Browse files Browse the repository at this point in the history
…documentation (#2376)
  • Loading branch information
Baael committed Nov 25, 2022
1 parent 9814124 commit 3f963ec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/api/index.md
Expand Up @@ -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<number[]>().toBeArray()
expectTypeOf(42).not.toBeString()
expectTypeOf('').toBeString()
expectTypeOf('a').toBeString()
```

### toBeBoolean
Expand Down

0 comments on commit 3f963ec

Please sign in to comment.