Const
Assertion for testing if a string matches a regular expression.
expect('hello123', 'to match', /\d+/); // passesexpect('hello', 'to match', /\d+/); // fails Copy
expect('hello123', 'to match', /\d+/); // passesexpect('hello', 'to match', /\d+/); // fails
Assertion for testing if a string matches a regular expression.