diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-30 01:28:55 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-30 01:28:55 +0800 |
commit | 1cfea1113ac90b5214560ea6db923106f638c4b8 (patch) | |
tree | 5a539d60640da4ee4b1ddd62f703f715523c411a /cmd/mist/assets/ext/ethereum.js/test/utils.js | |
parent | 726852e3d3ba5c2167bbdb3bdd3ecbaff6b4f242 (diff) | |
parent | 6488a392a347d0d47212fdc78386e3e0e5841d7d (diff) | |
download | go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.tar go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.tar.gz go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.tar.bz2 go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.tar.lz go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.tar.xz go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.tar.zst go-tangerine-1cfea1113ac90b5214560ea6db923106f638c4b8.zip |
Merge branch 'qt5.4' of github.com:ethereum/go-ethereum into qt5.4
Diffstat (limited to 'cmd/mist/assets/ext/ethereum.js/test/utils.js')
-rw-r--r-- | cmd/mist/assets/ext/ethereum.js/test/utils.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/mist/assets/ext/ethereum.js/test/utils.js b/cmd/mist/assets/ext/ethereum.js/test/utils.js new file mode 100644 index 000000000..8a1e9a0b6 --- /dev/null +++ b/cmd/mist/assets/ext/ethereum.js/test/utils.js @@ -0,0 +1,19 @@ +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 +}; + |