Back to Sinon

Combining matchers

docs/concepts/matchers/combining-matchers.md

22.1.0284 B
Original Source

Combining matchers

All matchers implement and and or. This allows to logically combine multiple matchers. The result is a new matcher that requires both (and) or one of the matchers (or) to return true.

<<< ../../.vitepress/tests/docs/matchers/combining-matchers.test.js