2015-01-11 10:54:36 -06:00
|
|
|
var assert = require('assert');
|
|
|
|
|
|
|
|
var methodExists = function (object, method) {
|
2015-01-15 04:38:21 -06:00
|
|
|
it('should have method ' + method + ' implemented', function() {
|
|
|
|
assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented');
|
|
|
|
});
|
2015-01-11 10:54:36 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
var propertyExists = function (object, property) {
|
2015-01-15 04:38:21 -06:00
|
|
|
it('should have property ' + property + ' implemented', function() {
|
|
|
|
assert.equal('object', typeof object[property], 'property ' + property + ' is not implemented');
|
|
|
|
});
|
2015-01-11 10:54:36 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
methodExists: methodExists,
|
|
|
|
propertyExists: propertyExists
|
|
|
|
};
|
|
|
|
|