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