diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
| commit | ad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch) | |
| tree | fbf2a59f81771b2938f474c8e7b35a497d2960e4 /test/integration/ark-reconcile.test.ts | |
| parent | 9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff) | |
| download | coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip | |
formatting
Diffstat (limited to 'test/integration/ark-reconcile.test.ts')
| -rw-r--r-- | test/integration/ark-reconcile.test.ts | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/test/integration/ark-reconcile.test.ts b/test/integration/ark-reconcile.test.ts index 5e2061e6..84825475 100644 --- a/test/integration/ark-reconcile.test.ts +++ b/test/integration/ark-reconcile.test.ts @@ -126,9 +126,7 @@ describe("ark sync reconciliation", () => { method: "POST", body: JSON.stringify({ aid: arkAccountId, - transactions: [ - { arkTxid: hash, amount: 3000, settled: true, createdAt: Date.now() }, - ], + transactions: [{ arkTxid: hash, amount: 3000, settled: true, createdAt: Date.now() }], balance: 13000, }), }); @@ -138,9 +136,7 @@ describe("ark sync reconciliation", () => { method: "POST", body: JSON.stringify({ aid: arkAccountId, - transactions: [ - { arkTxid: hash, amount: 3000, settled: true, createdAt: Date.now() }, - ], + transactions: [{ arkTxid: hash, amount: 3000, settled: true, createdAt: Date.now() }], balance: 13000, }), }); @@ -192,9 +188,7 @@ describe("ark sync reconciliation", () => { method: "POST", body: JSON.stringify({ aid: arkAccountId, - transactions: [ - { arkTxid: hash, amount: 5000, settled: true, createdAt: Date.now() }, - ], + transactions: [{ arkTxid: hash, amount: 5000, settled: true, createdAt: Date.now() }], balance: 5000, }), }); @@ -204,9 +198,7 @@ describe("ark sync reconciliation", () => { // Sum is now 5000 (13000 - 13000 + 5000), matches balance=5000 // No reconciliation needed - expect( - result.payments.filter((p: any) => p.memo === "expired"), - ).toHaveLength(0); + expect(result.payments.filter((p: any) => p.memo === "expired")).toHaveLength(0); }); test("partial expiry creates correct debit", async () => { @@ -240,9 +232,7 @@ describe("ark sync reconciliation", () => { method: "POST", body: JSON.stringify({ aid: arkAccountId, - transactions: [ - { arkTxid: hash, amount: 2000, settled: true, createdAt: Date.now() }, - ], + transactions: [{ arkTxid: hash, amount: 2000, settled: true, createdAt: Date.now() }], balance: 4000, // previous 2000 + new 2000 }), }); |
