spec/helpers/SpecHelper.js
function (util) {

      function printable(str) {
        return ('' + str).replace(/\n/g, '\\n').replace(/\r/g, '\\r')
      }
      function compare(actual, expected) {
        var pass = actual === expected
        return {
          pass: pass,
          message: util.buildFailureMessage(
            'toHasLinesLike', pass, printable(actual), printable(expected))
        }
      }

      return {compare: compare}
    }
function (util) {

      function printable(str) {
        return ('' + str).replace(/\n/g, '\\n').replace(/\r/g, '\\r')
      }
      function compare(actual, expected) {
        var pass = actual === expected
        return {
          pass: pass,
          message: util.buildFailureMessage(
            'toHasLinesLike', pass, printable(actual), printable(expected))
        }
      }

      return {compare: compare}
    }
function ( util ) { function printable ( str ) { return ( '' + str ) . replace ( / \n / g , '\\n' ) . replace ( / \r / g , '\\r' ) } function compare ( actual , expected ) { var pass = actual === expected return { pass : pass , message : util . buildFailureMessage ( 'toHasLinesLike' , pass , printable ( actual ) , printable ( expected ) ) } } return { compare : compare } }
simple string comparator, mainly for easy visualization of eols
simple string comparator mainly for easy visualization of eols