Const
Assertion for testing if a string includes/contains another string.
expect('hello world', 'includes', 'world'); // passesexpect('hello world', 'contains', 'foo'); // failsexpect('hello world', 'to include', 'hello'); // passesexpect('hello world', 'to contain', 'bar'); // fails Copy
expect('hello world', 'includes', 'world'); // passesexpect('hello world', 'contains', 'foo'); // failsexpect('hello world', 'to include', 'hello'); // passesexpect('hello world', 'to contain', 'bar'); // fails
Assertion for testing if a string includes/contains another string.