aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils.js
blob: 4c508da67aef6fa082303b4b7fd9c6419e24ebfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
};