Validators are basically more powerful assertions like
All of them support matchers in expected values.
Matchers are used with validators to match more than a single value. They are
attached directly to
expect object. For example with
can match any value.
Combine it with validator like
beEqual to create (not very useful) assertion
that works with any value:
Of course matchers can be nested.
Read more about matchers in Using matchers guide.
Modifiers change the way how assertion behave. Currently only modifier is
which negates an assertion: