function assertContainsSubstring(substring, text) {
  assertNotEquals(
      `Could not find "${substring}" in "${text}"`, -1, text.search(substring));
}
Asserts that a substring can be found in a specified text string.
@param {string} substring The substring to search for.
@param {string} text The text string to search within.