Documentation
    Preparing search index...

    Type Alias MockOutboxService

    MockOutboxService: MockService<MockOutboxState> & {
        closeSubscription(
            windowId: string,
            subId: string,
            reason?: string,
        ): boolean;
        inject(template: MockEventTemplate, author: string): NostrEvent;
    }

    Outbox mock with control helpers.

    Type Declaration

    const outbox = createMockOutboxService();
    outbox.inject({ kind: 1, content: 'observed' }, 'carol');