mirror of https://github.com/status-im/web3.js.git
20 lines
581 B
JavaScript
20 lines
581 B
JavaScript
var chai = require('chai');
|
|
var Iban = require('../lib/web3/iban.js');
|
|
var assert = chai.assert;
|
|
|
|
var tests = [
|
|
{ direct: 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS', address: '00c5496aee77c1ba1f0854206a26dda82a81d6d8'}
|
|
];
|
|
|
|
describe('lib/web3/iban', function () {
|
|
describe('toAddress', function () {
|
|
tests.forEach(function (test) {
|
|
it('shoud transform iban to address: ' + test.address, function () {
|
|
var iban = new Iban(test.direct);
|
|
assert.deepEqual(iban.address(), test.address);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|