aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-03 22:45:50 -0800
committerAdam Soltys <[email protected]>2026-03-03 22:45:50 -0800
commit1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1 (patch)
tree29399a82df3f981a24ef6cc84562c8ee006738d7 /test
parente66a08d18f2bef2eccfe84042a2674141a73d1c2 (diff)
downloadcoinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.tar.gz
coinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.zip
api proxy
Diffstat (limited to 'test')
-rw-r--r--test/e2e/ark-vault.spec.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/e2e/ark-vault.spec.ts b/test/e2e/ark-vault.spec.ts
index acb1fca7..f0f696a4 100644
--- a/test/e2e/ark-vault.spec.ts
+++ b/test/e2e/ark-vault.spec.ts
@@ -186,18 +186,18 @@ test.describe.serial("ark vault tests", () => {
expect(txid).toBeTruthy();
const frontendBase = "http://127.0.0.1:4173";
- const vaultSendRes = await page.request.post(`${frontendBase}/post/ark/vault-send`, {
+ const vaultSendRes = await page.request.post(`${frontendBase}/api/ark/vault-send`, {
data: { hash: txid, amount: sendAmount, aid: arkAccount.id },
});
expect(vaultSendRes.ok(), `vault-send: ${await vaultSendRes.text()}`).toBeTruthy();
- const invoiceRes = await page.request.post(`${frontendBase}/post/invoice`, {
+ const invoiceRes = await page.request.post(`${frontendBase}/api/invoice`, {
data: { invoice: { type: "ark", amount: sendAmount, aid: arkAccount.id } },
});
expect(invoiceRes.ok(), `invoice: ${await invoiceRes.text()}`).toBeTruthy();
const inv = await invoiceRes.json();
- const receiveRes = await page.request.post(`${frontendBase}/post/ark/receive`, {
+ const receiveRes = await page.request.post(`${frontendBase}/api/ark/receive`, {
data: { amount: sendAmount, hash: txid, iid: inv.id },
});
expect(receiveRes.ok(), `receive: ${await receiveRes.text()}`).toBeTruthy();
@@ -261,12 +261,12 @@ test.describe.serial("ark vault tests", () => {
expect(txid).toBeTruthy();
const frontendBase = "http://127.0.0.1:4173";
- const vaultSendRes = await page.request.post(`${frontendBase}/post/ark/vault-send`, {
+ const vaultSendRes = await page.request.post(`${frontendBase}/api/ark/vault-send`, {
data: { hash: txid, amount: sendAmount, aid: arkAccount.id },
});
expect(vaultSendRes.ok(), `vault-send: ${await vaultSendRes.text()}`).toBeTruthy();
- const invoiceRes = await page.request.post(`${frontendBase}/post/invoice`, {
+ const invoiceRes = await page.request.post(`${frontendBase}/api/invoice`, {
data: {
invoice: { type: "ark", amount: sendAmount, aid: arkAccount.id, forward: liquidAddress },
},
@@ -274,7 +274,7 @@ test.describe.serial("ark vault tests", () => {
expect(invoiceRes.ok(), `invoice: ${await invoiceRes.text()}`).toBeTruthy();
const inv = await invoiceRes.json();
- const receiveRes = await page.request.post(`${frontendBase}/post/ark/receive`, {
+ const receiveRes = await page.request.post(`${frontendBase}/api/ark/receive`, {
data: { amount: sendAmount, hash: txid, iid: inv.id },
});
expect(receiveRes.ok(), `receive: ${await receiveRes.text()}`).toBeTruthy();