mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
599 B
20 lines
599 B
10 years ago
|
var assert = require('assert');
|
||
|
|
||
|
var methodExists = function (object, method) {
|
||
10 years ago
|
it('should have method ' + method + ' implemented', function() {
|
||
|
assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented');
|
||
|
});
|
||
10 years ago
|
};
|
||
|
|
||
|
var propertyExists = function (object, property) {
|
||
10 years ago
|
it('should have property ' + property + ' implemented', function() {
|
||
10 years ago
|
assert.notEqual('undefined', typeof object[property], 'property ' + property + ' is not implemented');
|
||
10 years ago
|
});
|
||
10 years ago
|
};
|
||
|
|
||
|
module.exports = {
|
||
|
methodExists: methodExists,
|
||
|
propertyExists: propertyExists
|
||
|
};
|
||
|
|