MCPcopy
hub / github.com/bnoguchi/everyauth / bool

Function bool

test/util/expect.js:379–390  ·  view source on GitHub ↗

* Generate a boolean assertion function for the given attr `name`. * * @param {String} name * @return {Function} * @api private

(name)

Source from the content-addressed store, hash-verified

377 */
378
379function bool(name) {
380 return function(){
381 var elem = this.obj;
382
383 this.assert(
384 elem.attr(name)
385 , 'expected ' + j(elem) + ' to be ' + name
386 , 'expected ' + j(elem) + ' to not be ' + name);
387
388 return this;
389 }
390}
391
392/**
393 * Generate an attr assertion function for the given attr `name`.

Callers 1

expect.jsFile · 0.85

Calls 1

jFunction · 0.85

Tested by

no test coverage detected