Sha256: 9e55765141a3ee12f6d257cba5dec4dc720f64d023b56a6353e6a5b94c0e6402

Contents?: true

Size: 600 Bytes

Versions: 16

Compression:

Stored size: 600 Bytes

Contents

/*!
 * Should
 * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>
 * MIT Licensed
 */

var eql = require('../eql');

module.exports = function(should, Assertion) {
  Assertion.add('eql', function(val, description) {
    this.params = { operator: 'to equal', expected: val, showDiff: true, message: description };

    this.assert(eql(val, this.obj));
  });

  Assertion.add('equal', function(val, description) {
    this.params = { operator: 'to be', expected: val, showDiff: true, message: description };

    this.assert(val === this.obj);
  });

  Assertion.alias('equal', 'exactly');
};

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
stylus-source-0.42.2 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.42.1 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.42.0 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.41.3 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.41.2 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.41.1 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.41.0 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.40.3 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.40.2 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.40.1 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.40.0 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.39.4 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.39.3 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.39.2 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.39.1 vendor/node_modules/should/lib/ext/eql.js
stylus-source-0.39.0 vendor/node_modules/should/lib/ext/eql.js