docs: fix api/toThrowErrorMatchingSnapshot & api/toThrowErrorMatchingInlineSnapshot hyperlink (#1268)

This commit is contained in:
木荣 2022-05-08 17:29:32 +08:00 committed by GitHub
parent 4acd70552a
commit dfd4fc314c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -974,7 +974,7 @@ When you use `test` in the top level of file, they are collected as part of the
- **Type:** `(snapshot?: string) => void`
The same as `[toMatchSnapshot](#toMatchSnapshot)`, but expects the same value as `[toThrowError](#toThrowError)`.
The same as [`toMatchSnapshot`](#tomatchsnapshot), but expects the same value as [`toThrowError`](#tothrowerror).
If the function throws an `Error`, the snapshot will be the error message. Otherwise, snapshot will be the value thrown by the function.
@ -982,7 +982,7 @@ When you use `test` in the top level of file, they are collected as part of the
- **Type:** `(snapshot?: string) => void`
The same as `[toMatchInlineSnapshot](#toMatchInlineSnapshot)`, but expects the same value as `[toThrowError](#toThrowError)`.
The same as [`toMatchInlineSnapshot`](#tomatchinlinesnapshot), but expects the same value as [`toThrowError`](#tothrowerror).
If the function throws an `Error`, the snapshot will be the error message. Otherwise, snapshot will be the value thrown by the function.