mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user