Commit c397e350 authored by Marek Kotewicz's avatar Marek Kotewicz

mocha opts file && init of parser tests

parent b6058a83
...@@ -263,3 +263,4 @@ module.exports = { ...@@ -263,3 +263,4 @@ module.exports = {
inputParser: inputParser, inputParser: inputParser,
outputParser: outputParser outputParser: outputParser
}; };
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() {
});
});
});
--reporter Nyan
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment