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.18 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.17 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.16 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.15 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.14 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.13 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.12 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.11 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.10 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.3 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.3 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.3 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.2 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.2 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.2 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.1 vendor/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.1 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.1 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.0 vendor/assets/components/chaijs-chai/lib/chai/utils/test.js
ende-0.2.0 vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js