Example #1
0
function hasFunction(obj, name) {
  return !lookupGetter(obj, name) && typeof obj[name] == "function"
}
Example #2
0
 it("must be an alias of Must.prototype.resolve", function() {
   var eventually = O.lookupGetter(Must.prototype, "eventually")
   var resolve = O.lookupGetter(Must.prototype, "resolve")
   assert.strictEqual(eventually, resolve)
 })
Example #3
0
 it("must be an alias of Must.prototype.be", function() {
   var be = O.lookupGetter(Must.prototype, "be")
   var is = O.lookupGetter(Must.prototype, "is")
   assert.strictEqual(is, be)
 })
function defineSynonym(Must, name, synonym) {
  defineGetter(Must.prototype, name, lookupGetter(Must.prototype, synonym));
}
Example #5
0
 it("must be an alias of Must.prototype.resolve", function() {
   var then = O.lookupGetter(Must.prototype, "then")
   var resolve = O.lookupGetter(Must.prototype, "resolve")
   assert.strictEqual(then, resolve)
 })