methods existance tests in progress

This commit is contained in:
Marek Kotewicz
2015-01-08 19:59:03 +01:00
parent 5518022a5d
commit b6058a837f
6 changed files with 112 additions and 49 deletions

15
test/utils.js Normal file
View File

@@ -0,0 +1,15 @@
var assert = require('assert');
var methodExists = function (object, method) {
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');
};
module.exports = {
methodExists: methodExists,
propertyExists: propertyExists
};