src/jasmine-mox-matchers.js
function getResult(matcherName, pass, ...messageWithPlaceholderValues) {
  const formattedMessage = format.apply(this, messageWithPlaceholderValues);
  messages[matcherName] = formattedMessage; // Save {not} message for later use
  return {
    pass,
    message: formattedMessage.replace(' {not}', pass ? ' not' : '')
  };
}
function getResult(matcherName, pass, ...messageWithPlaceholderValues) {
  const formattedMessage = format.apply(this, messageWithPlaceholderValues);
  messages[matcherName] = formattedMessage; // Save {not} message for later use
  return {
    pass,
    message: formattedMessage.replace(' {not}', pass ? ' not' : '')
  };
}
function getResult ( matcherName , pass , ... messageWithPlaceholderValues ) { const formattedMessage = format . apply ( this , messageWithPlaceholderValues ) ; messages [ matcherName ] = formattedMessage ; // Save {not} message for later use return { pass , message : formattedMessage . replace ( ' {not}' , pass ? ' not' : '' ) } ; }
Create a jasmine 2 matcher result
@param {string} matcherName
@param {Boolean} pass
@param {...string} message
@returns {{pass: boolean, message: string}}
Create a jasmine 2 matcher result