diff --git a/src/actions/publish-spell.test.ts b/src/actions/publish-spell.test.ts index 7e870ee..8deb6b8 100644 --- a/src/actions/publish-spell.test.ts +++ b/src/actions/publish-spell.test.ts @@ -24,6 +24,12 @@ vi.mock("@/services/spell-storage", () => ({ markSpellPublished: vi.fn(), })); +vi.mock("@/services/relay-list-cache", () => ({ + relayListCache: { + getOutboxRelays: vi.fn().mockResolvedValue(["wss://relay.example.com/"]), + }, +})); + describe("PublishSpellAction", () => { let action: PublishSpellAction; @@ -61,6 +67,7 @@ describe("PublishSpellAction", () => { // @ts-expect-error: mocking internal state for test accountManager.active = { + pubkey: "pubkey", signer: mockSigner, }; diff --git a/src/components/KindRenderer.tsx b/src/components/KindRenderer.tsx index beb1e52..42cfda9 100644 --- a/src/components/KindRenderer.tsx +++ b/src/components/KindRenderer.tsx @@ -11,12 +11,6 @@ import { } from "@/lib/nostr-schema"; import { CenteredContent } from "./ui/CenteredContent"; import { - REPLACEABLE_START, - REPLACEABLE_END, - EPHEMERAL_START, - EPHEMERAL_END, - PARAMETERIZED_REPLACEABLE_START, - PARAMETERIZED_REPLACEABLE_END, isReplaceableKind, isEphemeralKind, isParameterizedReplaceableKind, @@ -86,12 +80,11 @@ export default function KindRenderer({ kind }: { kind: number }) {
d-tag