diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-12 00:12:37 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-12 00:12:37 +0800 |
commit | 6c26255979fe8249932beed88e284cf43b806cf7 (patch) | |
tree | c0814aa78bccb50e27af2dd8b6414ad2a1f7ec9b /test/utils.js | |
parent | e2c4525da7a4d50fdba088837853494ef3de9dd7 (diff) | |
parent | e778e127d6b4ab9e8efb514966975b96b85e7dd6 (diff) | |
download | go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.tar go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.tar.gz go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.tar.bz2 go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.tar.lz go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.tar.xz go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.tar.zst go-tangerine-6c26255979fe8249932beed88e284cf43b806cf7.zip |
Merge branch 'tests' into develop
Diffstat (limited to 'test/utils.js')
-rw-r--r-- | test/utils.js | 15 |
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 +}; + |