Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

style(tests): rewrite the ledger anchor test comments without em-dashes

nirholas4b78e45b3a1a
diff --git a/tests/cron-ledger-anchor-outage.test.js b/tests/cron-ledger-anchor-outage.test.js
index 6fc43f8d1..8cd970ddc 100644
--- a/tests/cron-ledger-anchor-outage.test.js
+++ b/tests/cron-ledger-anchor-outage.test.js
@@ -5,12 +5,12 @@
// /api/ledger/verify/:agentId has an independent on-chain witness. Two distinct
// things can stop that, and they used to be reported identically:
//
-// • no attester key configured — a documented degraded mode. The commitment is
+// • no attester key configured. A documented degraded mode: the commitment is
// still recorded locally, every agent should still get its row, and nobody
// should be paged.
// • the broadcast itself rejected (an unfunded attester wallet answers every
// send with "Attempt to debit an account but found no record of a prior
-// credit") — a real outage. It fails identically for every agent in the run,
+// credit"). A real outage: it fails identically for every agent in the run,
// so re-simulating the same doomed memo for each remaining agent is pure
// waste, and a silent 200 is how it stayed invisible.
//
@@ -19,9 +19,10 @@
// it skipped, and pages ops
// 2. a missing key stays pending for every agent and pages nobody
//
-// The matching unit property for anchorLedgerHead itself (a rejected broadcast
-// returns 'failed', not 'pending') lives in ledger-anchor-broadcast-status.test.js;
-// it needs the real module, which this file mocks out.
+// The matching unit property for anchorLedgerHead itself, that a rejected
+// broadcast reports "failed" rather than "pending", is pinned separately in
+// ledger-anchor-broadcast-status.test.js, which needs the real module that this
+// file mocks out.
import { test, expect, vi, beforeEach } from 'vitest';
const sendOpsAlert = vi.fn(async () => {});
diff --git a/tests/ledger-anchor-broadcast-status.test.js b/tests/ledger-anchor-broadcast-status.test.js
index 8448ec7b6..af0fc22b9 100644
--- a/tests/ledger-anchor-broadcast-status.test.js
+++ b/tests/ledger-anchor-broadcast-status.test.js
@@ -5,8 +5,8 @@
// is configured (the commitment is kept locally and the on-chain timestamp is
// deferred, which is fine) and a `failed` row when the memo was actually rejected
// on-chain. It used to RETURN 'pending' for both, so an attester wallet with no
-// SOL — every send answered "Attempt to debit an account but found no record of a
-// prior credit" — read to its caller exactly like the benign no-key path.
+// SOL, whose every send answered "Attempt to debit an account but found no record
+// of a prior credit", read to its caller exactly like the benign no-key path.
//
// Pinned here: the returned status matches the persisted row, so the cron above
// it can tell a degraded mode from an outage.