diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-15 18:38:21 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-15 18:38:21 +0800 |
commit | bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84 (patch) | |
tree | a62c488e7c86cd92b49cc30a840f1faf05a1fb44 /test/utils.js | |
parent | 472ad43211e120bdbf1c16a8a49b297164cc4b13 (diff) | |
download | dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.gz dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.bz2 dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.lz dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.xz dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.zst dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.zip |
methodExists and propertyExists are now separated tests
Diffstat (limited to 'test/utils.js')
-rw-r--r-- | test/utils.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/utils.js b/test/utils.js index 4c508da67..8617348e4 100644 --- a/test/utils.js +++ b/test/utils.js @@ -1,11 +1,15 @@ var assert = require('assert'); var methodExists = function (object, method) { - assert.equal('function', typeof object[method], 'method ' + method + ' is not implemented'); + it('should have method ' + method + ' implemented', function() { + 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'); + it('should have property ' + property + ' implemented', function() { + assert.equal('object', typeof object[property], 'property ' + property + ' is not implemented'); + }); }; module.exports = { |