aboutsummaryrefslogtreecommitdiffstats
path: root/method.formatInput.js
diff options
context:
space:
mode:
Diffstat (limited to 'method.formatInput.js')
-rw-r--r--method.formatInput.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/method.formatInput.js b/method.formatInput.js
deleted file mode 100644
index c778f105..00000000
--- a/method.formatInput.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var chai = require('chai');
-var assert = chai.assert;
-var Method = require('../lib/web3/method');
-
-describe('lib/web3/method', function () {
- describe('formatInput', function () {
- it('should format plain input', function () {
-
- // given
- var star = function (arg) {
- return arg + '*';
- };
-
- var method = new Method({
- inputFormatter: [star, star, star]
- });
- var args = ['1','2','3'];
- var expectedArgs = ['1*', '2*', '3*'];
-
- // when
- var result = method.formatInput(args);
-
- // then
- assert.deepEqual(result, expectedArgs);
- });
-
- it('should do nothing if there is no formatter', function () {
-
- // given
- var method = new Method({});
- var args = [1,2,3];
-
- // when
- var result = method.formatInput(args);
-
- // then
- assert.deepEqual(result, args);
- });
- });
-});
-