mocha opts file && init of parser tests

pull/272/merge
Marek Kotewicz 10 years ago
parent b6058a837f
commit c397e350f4
  1. 1
      lib/abi.js
  2. 37
      test/abi.parsers.js
  3. 2
      test/mocha.opts

@ -263,3 +263,4 @@ module.exports = {
inputParser: inputParser,
outputParser: outputParser
};

@ -0,0 +1,37 @@
var assert = require('assert');
var abi = require('../lib/abi.js');
describe('abi', function() {
describe('inputParser', function() {
it('should parse ...', function() {
var desc = [{
"name": "multiply",
"inputs": [
{
"name": "a",
"type": "uint256"
}
],
"outputs": [
{
"name": "d",
"type": "uint256"
}
]
}];
var iParser = abi.inputParser(desc);
assert.equal(iParser.multiply(1), "0x000000000000000000000000000000000000000000000000000000000000000001");
});
});
describe('outputParser', function() {
it('parse ...', function() {
});
});
});

@ -0,0 +1,2 @@
--reporter Nyan
Loading…
Cancel
Save