Asserts that a value matches a regular expression or includes a substring.
method
test.Matchers.toMatch
@param expected
the expected substring or pattern.
expect("dog").toMatch(/dog/);
expect("dog").toMatch("og");
method
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");