Skip to content

Commit

Permalink
Docs, addAssertion: Add a note about multiple assertion strings not b…
Browse files Browse the repository at this point in the history
…eing supported.
  • Loading branch information
papandreou committed Jan 1, 2016
1 parent 490c403 commit fa2ae03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documentation/api/addAssertion.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ vertical bars between them are treated as alternative texts that can
be used. In this case you can write _ordered_ as an alternative to
_sorted_.

An assertion can only have a single assertion string, which must be
provided after the subject type. This means that you cannot have
more words, flags, and alternations after the first type.

The second and last parameter to `addAssertion` is function that will
be called when `expect` is invoked with an expectation matching the
type and pattern of the assertion.
Expand Down

0 comments on commit fa2ae03

Please sign in to comment.