Skip to content

Commit 0453c5a

Browse files
authored
docs: Address typos in expect.md (#6290)
1 parent f2cc22e commit 0453c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/expect.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ This ensures that a value matches the most recent snapshot.
700700
You can provide an optional `hint` string argument that is appended to the test name. Although Vitest always appends a number at the end of a snapshot name, short descriptive hints might be more useful than numbers to differentiate multiple snapshots in a single it or test block. Vitest sorts snapshots by name in the corresponding `.snap` file.
701701

702702
:::tip
703-
When snapshot mismatch and causing the test failing, if the mismatch is expected, you can press `u` key to update the snapshot for once. Or you can pass `-u` or `--update` CLI options to make Vitest always update the tests.
703+
When a snapshot mismatches and causes the test to fail, if the mismatch is expected, you can press `u` key to update the snapshot once. Or you can pass `-u` or `--update` CLI options to make Vitest always update the tests.
704704
:::
705705

706706
```ts
@@ -1287,7 +1287,7 @@ test('callback was called', async () => {
12871287

12881288
- **Type:** `(message?: string) => never`
12891289

1290-
This method is used to asserting that a line should never be reached.
1290+
This method is used to assert that a line should never be reached.
12911291

12921292
For example, if we want to test that `build()` throws due to receiving directories having no `src` folder, and also handle each error separately, we could do this:
12931293

0 commit comments

Comments
 (0)