Allow to specify server url without explicit port number

This commit is contained in:
Ivan Tivonenko
2015-08-21 05:28:22 +03:00
parent e3b688d1dd
commit 23653f67f0
3 changed files with 23 additions and 7 deletions

View File

@@ -818,4 +818,9 @@ describe('RippleAPI - offline', function() {
assert(!api.isValidAddress(hex));
});
/* eslint-disable no-unused-vars */
it('RippleAPI - implicit server port', function() {
const api = new RippleAPI({servers: ['wss://s1.ripple.com']});
});
/* eslint-enable no-unused-vars */
});