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

Version Path
ende-0.2.0 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.14 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.14 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.13 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.13 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.12 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.12 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.11 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.11 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.10 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.10 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.9 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.9 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.8 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.8 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.7 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.7 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.6 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.6 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.1.5 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js