diff options
Diffstat (limited to 'formatters.inputDefaultBlockFormatter.js')
-rw-r--r-- | formatters.inputDefaultBlockFormatter.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/formatters.inputDefaultBlockFormatter.js b/formatters.inputDefaultBlockFormatter.js deleted file mode 100644 index 8ae5ea26..00000000 --- a/formatters.inputDefaultBlockFormatter.js +++ /dev/null @@ -1,24 +0,0 @@ -var chai = require('chai'); -var assert = chai.assert; -var formatters = require('../lib/web3/formatters'); - -var tests = [ - { value: 'latest', expected: 'latest' }, - { value: 'pending', expected: 'pending' }, - { value: 'earliest', expected: 'earliest' }, - { value: 1, expected: '0x1' }, - { value: '0x1', expected: '0x1' } -]; - -describe('lib/web3/formatters', function () { - describe('inputDefaultBlockNumberFormatter', function () { - tests.forEach(function (test) { - it('should turn ' + test.value + ' to ' + test.expected, function () { - assert.strictEqual(formatters.inputDefaultBlockNumberFormatter(test.value), test.expected); - }); - }); - }); -}); - - - |