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.4.15 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.15 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.14 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.14 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.13 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.13 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.12 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.12 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.11 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.11 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.10 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.10 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.9 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.9 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.8 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.8 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.7 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.7 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.6 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.4.6 vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js