docs: fix type api/expect.hasAssertions (#1281)

This commit is contained in:
张扬 2022-05-10 09:44:10 +08:00 committed by GitHub
parent 1aa29583c9
commit e6ee27fd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1324,7 +1324,7 @@ When you use `test` in the top level of file, they are collected as part of the
### expect.hasAssertions
- **Type:** `(count: number) => void`
- **Type:** `() => void`
After the test has passed or failed verifies that at least one assertion was called during a test. Useful case would be to check if an asynchronous code was called.