assert.js
function equal(actual, expected, message) {
    if (actual == expected) {
      this.pass(message);
    }
    else {
      this.fail({
        actual: actual,
        expected: expected,
        message: message,
        operator: "=="
      });
    }
  }
function equal(actual, expected, message) {
    if (actual == expected) {
      this.pass(message);
    }
    else {
      this.fail({
        actual: actual,
        expected: expected,
        message: message,
        operator: "=="
      });
    }
  }
function equal ( actual , expected , message ) { if ( actual == expected ) { this . pass ( message ) ; } else { this . fail ( { actual : actual , expected : expected , message : message , operator : "==" } ) ; } }
The equality assertion tests shallow, coercive equality with `==`.
@example
assert.equal(1, 1, "one is one");
The equality assertion tests shallow coercive equality with == .