aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-12 00:54:36 +0800
committerGav Wood <i@gavwood.com>2015-01-12 00:54:36 +0800
commitded221fba2cc21e1037a1130d9d142e657a52e89 (patch)
tree48d0c2871eafec7049d0f5c04b24db8d0f91df3f /test/utils.js
parent47687cf085196e2e4fa7ec42ff426f241dae10c5 (diff)
downloadgo-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.gz
go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.zst
go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.zip
Merge commit 'ab745d3b0eb89d67db1ed953020c665be3d072ed' into develop
Conflicts: libjsqrc/ethereumjs/.travis.yml libjsqrc/ethereumjs/README.md libjsqrc/ethereumjs/dist/ethereum.js libjsqrc/ethereumjs/dist/ethereum.js.map libjsqrc/ethereumjs/lib/abi.js libjsqrc/ethereumjs/package.json
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
+};
+