spec/spec.js
function assertSubstrings(str, substrings) {
  substrings.forEach(function(substring) {
    assert(str.indexOf(substring) !== -1, str +
      ' - string does not contain: ' + substring);
  });
}
function assertSubstrings(str, substrings) {
  substrings.forEach(function(substring) {
    assert(str.indexOf(substring) !== -1, str +
      ' - string does not contain: ' + substring);
  });
}
function assertSubstrings ( str , substrings ) { substrings . forEach ( function ( substring ) { assert ( str . indexOf ( substring ) !== - 1 , str + ' - string does not contain: ' + substring ) ; } ) ; }
Asserts that each substring is present in the supplied string.

@param {string}   str
@param {string[]} substrings
Asserts that each substring is present in the supplied string .