Asserts that a value matches a regular expression or includes a substring.
Symbol
MatchersBuiltin.toMatch
@param expected
the expected substring or pattern.
expect("dog").toMatch(/dog/);
expect("dog").toMatch("og");
Symbol
Asserts that a value matches a regular expression or includes a substring.
the expected substring or pattern.
expect("dog").toMatch(/dog/);
expect("dog").toMatch("og");