Hopefully fix browser websocket issue, npm 0.3.2

This commit is contained in:
nitowa
2024-10-14 04:47:05 +02:00
parent b5c71753cc
commit d345e87bf0
8 changed files with 1902 additions and 1242 deletions
+15 -1
View File
File diff suppressed because one or more lines are too long
+7
View File
@@ -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
View File
@@ -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)
})