aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils.js')
-rw-r--r--test/utils.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/utils.js b/test/utils.js
new file mode 100644
index 000000000..4c508da67
--- /dev/null
+++ b/test/utils.js
@@ -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
+};
+