formal-0.1.0: lib/jasmine-node/spec/sample_helper.js
(function(){
var objectToString = Object.prototype.toString;
var PRIMITIVE_TYPES = [String, Number, RegExp, Boolean, Date];
beforeEach(function(){
this.addMatchers({
toHaveProperty: function(prop) {
try {
return prop in this.actual;
}
catch (e) {
return false;
}
}
});
});
})();