Hopefully fix browser websocket issue, npm 0.3.2
This commit is contained in:
+15
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
||||
(() => {
|
||||
"use strict";
|
||||
const e = new xrpIO("wss://s.altnet.rippletest.net:51233", { debug: false });
|
||||
e.connect().then((async t => {
|
||||
const n = await e.treeRead(["1481F8DD37C2D3AE3CE60B25264B902BD9E0377AAA1AEDB924D05049F36DFB15"], void 0); document.write(n)
|
||||
}))
|
||||
})();
|
||||
+8
-1
@@ -38,6 +38,13 @@ describe('XRPIO', () => {
|
||||
})
|
||||
|
||||
|
||||
it('treeRead spc', async function(){
|
||||
this.timeout(450000)
|
||||
const data = await api.treeRead(["1481F8DD37C2D3AE3CE60B25264B902BD9E0377AAA1AEDB924D05049F36DFB15"], undefined)
|
||||
expect(data).to.exist
|
||||
})
|
||||
|
||||
|
||||
it('throws error if not enough funds', function(done){
|
||||
this.timeout(15000)
|
||||
console.log(poorWallet)
|
||||
@@ -121,7 +128,7 @@ describe('XRPIO', () => {
|
||||
|
||||
it('treeRead', async function(){
|
||||
this.timeout(45000)
|
||||
const data = await api.treeRead([txHash])
|
||||
const data = await api.treeRead([txHash], undefined)
|
||||
expect(data).to.exist
|
||||
expect(data).to.be.equal(longText)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user