Sha256: 5ba2564a015fdbc2719aa7f5d8d5f5a4a679c43a29730ab0a2bbd663fc4ec11a
Contents?: true
Size: 500 Bytes
Versions: 100
Compression:
Stored size: 500 Bytes
Contents
/*! * Chai - test utility * Copyright(c) 2012-2013 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ /*! * Module dependancies */ var flag = require('./flag'); /** * # test(object, expression) * * Test and object for expression. * * @param {Object} object (constructed Assertion) * @param {Arguments} chai.Assertion.prototype.assert arguments */ module.exports = function (obj, args) { var negate = flag(obj, 'negate') , expr = args[0]; return negate ? !expr : expr; };
Version data entries
100 entries across 68 versions & 1 rubygems