web3.js/test/web3.fromICAP.js

20 lines
545 B
JavaScript
Raw Normal View History

2015-10-05 10:50:19 +00:00
var chai = require('chai');
2015-10-08 02:14:43 +00:00
var Web3 = require('../index');
var web3 = new Web3();
2015-10-05 10:50:19 +00:00
var assert = chai.assert;
var tests = [
{ direct: 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS', address: '00c5496aee77c1ba1f0854206a26dda82a81d6d8'}
];
describe('web3', function () {
describe('fromICAP', function () {
tests.forEach(function (test) {
it('shoud transform iban to address: ' + test.address, function () {
assert.deepEqual(web3.fromICAP(test.direct), test.address);
});
});
});
});