Requires the value to be a string and have the expectation as a substring.
Requires the value to be a string and match the given regular expression.
See custom matchers.
Requires the value to be not null or undefined and have at least the same properties as expectation. This supports nested matchers.
Matches anything.
Requires the value to be an Array.
Requires the value to be a Boolean
Requires the value to be a Date object.
Requires the value to be defined.
Requires the value to be falsy.
Requires the value to be a Function.
Requires the value to be a Map.
Requires the value to be a Number.
Requires the value to be an Object.
Requires the value to be a regular expression.
Requires the value to be a Set.
Requires the value to be a String.
Requires the value to be a Symbol.
Requires the value to be truthy.
Requires every element of an Array, Set or Map, or alternatively every value of an Object to match the given matcher.
Requires the value to define the given property. The property might be inherited via the prototype chain. If the optional expectation is given, the value of the property is deeply compared with the expectation. The expectation can be another matcher.
Requires the value to define the given propertyPath. Dot (prop.prop) and bracket (prop[0]) notations are supported as in Lodash.get. The propertyPath might be inherited via the prototype chain. If the optional expectation is given, the value at the propertyPath is deeply compared with the expectation. The expectation can be another matcher.
Same as sinon.match.has but the property must be defined by the value itself. Inherited properties are ignored.
Requires the value to be in the specified array.
Requires the value to be an instance of the given type.
Requires the value to strictly equal ref.
Requires any element of an Array, Set or Map, or alternatively any value of an Object to match the given matcher.
Requires the value to be of the given type, where type can be one of "undefined", "null", "boolean", "number", "string", "object", "function", "array", "regexp", "date" or "symbol".
Requires the value to be == to the given number.