Skip to content

Commit 61ded90

Browse files
committed
Snapshot assertions do not return booleans
1 parent 0e5cc7d commit 61ded90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/03-assertions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test('unicorns are truthy', t => {
2121

2222
If multiple assertion failures are encountered within a single test, AVA will only display the *first* one.
2323

24-
Assertions return a boolean indicating whether they passed. You can use this to return early from a test. Note that this does not apply to the "throws" assertions.
24+
Assertions return a boolean indicating whether they passed. You can use this to return early from a test. Note that this does not apply to the "throws" and `snapshot()` assertions.
2525

2626
## Assertion planning
2727

@@ -337,7 +337,7 @@ Compares the `expected` value with a previously recorded snapshot. Snapshots are
337337

338338
AVA 3 supports an `options` object that lets you select a specific snapshot, for instance `{id: 'my snapshot'}`. This is buggy and will be removed in AVA 4.
339339

340-
Snapshot assertions cannot be skipped when snapshots are being updated. Returns a boolean indicating whether the assertion passed.
340+
Snapshot assertions cannot be skipped when snapshots are being updated.
341341

342342
### `.try(title?, implementation | macro | macro[], ...args?)`
343343

0 commit comments

Comments
 (0)