UNPKG

pusher-js-mock

Version:

Mock Pusher.js in your JavaScript tests with ease

9 lines (8 loc) 390 B
import { PusherChannelMock, PusherMock } from "."; /** * Create the proxied channel * @param {PusherChannelMock} channel the channel to be proxied * @param {PusherMock} client the client we'll use to proxy the channel * @returns {Proxy<PusherChannelMock>} the proxied channel */ export declare const proxyChannel: (channel: PusherChannelMock, client: PusherMock) => PusherChannelMock;