Creates a new instance of ArrayContaining asymmetric matcher.
Expected array that is a subset of the received value.
If true, matches if the received array does not contain the expected elements.
Symbol to identify asymmetric matcher.
ProtectedinverseIf true, the matcher will check for non-matching values.
ProtectedsampleThe sample value to match against.
Checks if the value matches.
The value to test.
true if the value matches, otherwise false.
Returns the expected type of the asymmetric matcher.
The expected type of the asymmetric matcher.
ProtectedgetReturns the context for the asymmetric matcher.
The context for the asymmetric matcher.
OptionaltoReturns a string representation of the asymmetric matcher for use in error messages.
A string representation of the asymmetric matcher for error messages.
Returns a string representation of the asymmetric matcher.
A string representation of the asymmetric matcher.
Assymmetric matcher that matches an array that contains all of the elements in the expected array, in any order. Note that received array may be a superset of the expected array and contain some extra elements.
Use this method inside expect(value).toEqual(expected) to perform pattern matching.
Usage