methodExists and propertyExists are now separated tests
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
var assert = require('assert');
|
||||
|
||||
var methodExists = function (object, method) {
|
||||
assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented');
|
||||
it('should have method ' + method + ' implemented', function() {
|
||||
assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented');
|
||||
});
|
||||
};
|
||||
|
||||
var propertyExists = function (object, property) {
|
||||
assert.equal('object', typeof object[property], 'property ' + property + ' is not implemented');
|
||||
it('should have property ' + property + ' implemented', function() {
|
||||
assert.equal('object', typeof object[property], 'property ' + property + ' is not implemented');
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
Reference in New Issue
Block a user