Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/tutorials/snapshot_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Deno.test("isSnapshotMatch", async (t) => {

You will need to grant read and write file permissions in order for Deno to
write a snapshot file and then read it to test the assertion. If it is the first
time you are running the test a do not already have a snapshot, add the
time you are running the test and you do not already have a snapshot, add the
`--update` flag:

```bash
Expand Down Expand Up @@ -143,7 +143,7 @@ Deno.test("isSnapshotMatch", async (t) => {
When you run a test with `assertSnapshot`, the data you're testing needs to be
converted to a string format that can be written to the snapshot file (when
creating or updating snapshots) and compared with the existing snapshot (when
validating), this is called serialization.
validating). This is called serialization.

The `serializer` option allows you to provide a custom serializer function. This
custom function will be called by `assertSnapshot` and be passed the value being
Expand Down
Loading