mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f4bb060d50
edfb874 changes in filter.js (not yet working) c2d9c1a toDecimal/fromDecimal is using bignumber.js now 81a5813 removed unused pieces of code 08e2696 removed send queues from providermanager c9693b4 contract.html example is working with sync api ceb4357 sync api tests running, removed unused pieces of code fc986a3 removed unused providers 0d2cccc http sync api git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: edfb874527160cee14cca931377e55187b874cbe
20 lines
599 B
JavaScript
20 lines
599 B
JavaScript
var assert = require('assert');
|
|
|
|
var methodExists = function (object, method) {
|
|
it('should have method ' + method + ' implemented', function() {
|
|
assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented');
|
|
});
|
|
};
|
|
|
|
var propertyExists = function (object, property) {
|
|
it('should have property ' + property + ' implemented', function() {
|
|
assert.notEqual('undefined', typeof object[property], 'property ' + property + ' is not implemented');
|
|
});
|
|
};
|
|
|
|
module.exports = {
|
|
methodExists: methodExists,
|
|
propertyExists: propertyExists
|
|
};
|
|
|