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