fix: add missing mocks in publish-spell.test.ts

- Add mock for @/services/relay-list-cache module
- Add pubkey property to account mock (required by PublishSpellAction
  which calls relayListCache.getOutboxRelays(account.pubkey))

The test was failing because PublishSpellAction.execute() now
fetches the author's outbox relays using the relay list cache.
This commit is contained in:
Claude
2025-12-22 12:02:53 +00:00
parent 64002ed1ec
commit 1f14aeece2

View File

@@ -68,8 +68,8 @@ describe("PublishSpellAction", () => {
// @ts-expect-error: mocking internal state for test
accountManager.active = {
signer: mockSigner,
pubkey: "pubkey",
signer: mockSigner,
};
const spell: LocalSpell = {