UNPKG

pusher-js-mock

Version:

Mock Pusher.js in your JavaScript tests with ease

13 lines (12 loc) 525 B
import { PusherMock, PusherPresenceChannelMock } from "."; export interface IProxiedCallback { (): (data?: any) => void; owner: string; } /** * Create the proxied channel * @param {PusherPresenceChannelMock} channel the channel to be proxied * @param {PusherMock} client the client we'll use to proxy the channel * @returns {Proxy<PusherPresenceChannelMock>} the proxied channel */ export declare const proxyPresenceChannel: (channel: PusherPresenceChannelMock, client: PusherMock) => PusherPresenceChannelMock;