Skip to content

Commit

Permalink
Merge pull request #397 from jamestalmage/document-skipped-assertions
Browse files Browse the repository at this point in the history
Document skippable assertions.
  • Loading branch information
sindresorhus committed Jan 1, 2016
2 parents f8701d5 + 879e036 commit f696271
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,17 @@ Assert that `function` doesn't throw an `error` or `promise` resolves.

Assert that `error` is falsy.

## Skipping Assertions

Any assertion can be skipped using the `skip` modifier. Skipped assertions are still counted, so there is no need to change your planned assertion count.

```js
test(t => {
t.plan(2);
t.skip.is(foo(), 5); // no need to change your plan count when skipping.
t.is(1, 1);
});
```

## Enhanced asserts

Expand Down

0 comments on commit f696271

Please sign in to comment.