Skip to content

Commit 45e5f10

Browse files
authored
Merge pull request #377 from yionr/patch-2
docs(cn): sync & translate in snapshot.md
2 parents 922a4f0 + 1f3bf92 commit 45e5f10

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

guide/snapshot.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@ test('toThrowErrorMatchingSnapshot', () => {
236236
})
237237
```
238238

239-
“toThrowErrorMatchingSnapshot”和“toThrow ErrorMatchingInlineSnapshot”的默认“错误”快照不同`
240-
241239
在 Jest 中,快照将是:
242240

243241
```console
@@ -260,7 +258,7 @@ test('snapshot', () => {
260258

261259
expect(new Error('error')).toMatchInlineSnapshot('[Error: error]')
262260

263-
// Jest snapshots `Error.message` for `Error` instance
261+
// Jest `Error` 实例上记录 `Error.message` 快照
264262
expect(() => {
265263
throw new Error('error')
266264
}).toThrowErrorMatchingInlineSnapshot('"error"')

0 commit comments

Comments
 (0)