Documentation
    Preparing search index...

    Type Alias MockCountService

    MockCountService: MockService<MockCountState> & {
        failNext(error: string, reason?: string): void;
    }

    Count mock with control helpers.

    Type Declaration

    • failNext: function
      • Make the next count.query answer the given CountFailure.

        Parameters

        • error: string
        • Optionalreason: string

        Returns void

    const count = createMockCountService();
    count.failNext('timeout', 'relay did not answer');