function expect(condition, message) {
    if (!condition) {
      console.error(
          'Unexpected condition on ' + document.location.href + ': ' + message);
    }
  }
/**
   * Checks condition, displays error message if expectation fails.
   * @param {*} condition The condition to check for truthiness.
   * @param {string} message The message to display if the check fails.
   */
Checks condition, displays error message if expectation fails.
@param {*} condition The condition to check for truthiness.
@param {string} message The message to display if the check fails.
Checks condition displays error message if expectation fails . @param { * } condition The condition to check for truthiness . @param { string } message The message to display if the check fails .
function expect(condition, message) {
    if (!condition) {
      console.error(
          'Unexpected condition on ' + document.location.href + ': ' + message);
    }
  }
function expect ( condition , message ) { if ( ! condition ) { console . error ( 'Unexpected condition on ' + document . location . href + ': ' + message ) ; } }
Checks condition, displays error message if expectation fails.
Checks condition displays error message if expectation fails .