aboutsummaryrefslogtreecommitdiffstats
path: root/utils.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-12 01:16:50 +0800
committerGav Wood <i@gavwood.com>2015-01-12 01:16:50 +0800
commitdcf362c0d5ca53dd8f41afafcd8ce2a45f38c594 (patch)
tree79b9900b7a8c4013808ad8272abdb92d394c7b11 /utils.js
downloaddexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.tar
dexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.tar.gz
dexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.tar.bz2
dexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.tar.lz
dexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.tar.xz
dexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.tar.zst
dexon-solidity-dcf362c0d5ca53dd8f41afafcd8ce2a45f38c594.zip
Squashed 'libjsqrc/ethereumjs/' changes from 47687cf..ab745d3
ab745d3 updated readme b915c7a updated readme 6c26255 Merge branch 'tests' into develop e2c4525 Merge branch 'master' into develop e778e12 spec reporter instead of nyan a4e6f0b fixed travis.yml && added nmp test script 048e777 Merge branch 'master' into tests 15c2293 updated package json 24814a4 Merge branch 'master' of https://github.com/ethereum/ethereum.js 6188e64 Update README.md c34b0c6 Update README.md 29c60c0 Merge branch 'develop' into tests b3eda29 Merge branch 'master' into tests c397e35 mocha opts file && init of parser tests b6058a8 methods existance tests in progress 5518022 mocha test init git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: ab745d3b0eb89d67db1ed953020c665be3d072ed
Diffstat (limited to 'utils.js')
-rw-r--r--utils.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils.js b/utils.js
new file mode 100644
index 00000000..4c508da6
--- /dev/null
+++ b/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
+};
+