Creates a new instance of StringContaining asymmetric matcher.
Expected substring.
If true, matches if the received string does not contain the expected substring.
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 a string that contains the expected substring. Use it inside expect(value).toEqual(expected) to perform pattern matching.
Usage