aboutsummaryrefslogtreecommitdiffstats
path: root/method.attachToObject.js
diff options
context:
space:
mode:
Diffstat (limited to 'method.attachToObject.js')
-rw-r--r--method.attachToObject.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/method.attachToObject.js b/method.attachToObject.js
deleted file mode 100644
index a27a3e82..00000000
--- a/method.attachToObject.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var chai = require('chai');
-var assert = chai.assert;
-var Method = require('../lib/web3/method');
-var utils = require('../lib/utils/utils');
-
-describe('lib/web3/method', function () {
- describe('attachToObject', function () {
- //it('attach simple function to an object', function () {
-
- //// given
- //var method = new Method({
- //name: 'hello'
- //});
- //var object = {};
- //var func = function () { return 1; };
-
- //// when
- //method.attachToObject(object, func);
-
- //// then
- //assert.equal(utils.isFunction(object.hello), true);
- //assert.equal(object.hello(), 1);
- //});
-
- //it('attach nested function to an object', function () {
-
- //// given
- //var method = new Method({
- //name: 'hello.world'
- //});
- //var object = {};
- //var func = function () { return 1; };
-
- //// when
- //method.attachToObject(object, func);
-
- //// then
- //assert.equal(utils.isObject(object.hello), true);
- //assert.equal(utils.isFunction(object.hello.world), true);
- //assert.equal(object.hello.world(), 1);
- //});
- });
-});
-