mirror of https://github.com/status-im/web3.js.git
22 lines
650 B
JavaScript
22 lines
650 B
JavaScript
var chai = require('chai');
|
|
var Iban = require('../lib/web3/iban.js');
|
|
var assert = chai.assert;
|
|
|
|
var tests = [
|
|
{ institution: 'XREG', identifier: 'GAVOFYORK', expected: 'XE81ETHXREGGAVOFYORK'}
|
|
];
|
|
|
|
describe('lib/web3/iban', function () {
|
|
describe('createIndirect', function () {
|
|
tests.forEach(function (test) {
|
|
it('shoud create indirect iban: ' + test.expected, function () {
|
|
assert.deepEqual(Iban.createIndirect({
|
|
institution: test.institution,
|
|
identifier: test.identifier
|
|
}), new Iban(test.expected));
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|