MCPcopy
hub / github.com/parse-community/parse-server / addMockClient

Function addMockClient

spec/ParseLiveQueryServer.spec.js:1847–1852  ·  view source on GitHub ↗
(parseLiveQueryServer, clientId)

Source from the content-addressed store, hash-verified

1845
1846 // Helper functions to add mock client and subscription to a liveQueryServer
1847 function addMockClient(parseLiveQueryServer, clientId) {
1848 const Client = require('../lib/LiveQuery/Client').Client;
1849 const client = new Client(clientId, {});
1850 parseLiveQueryServer.clients.set(clientId, client);
1851 return client;
1852 }
1853
1854 async function addMockSubscription(
1855 parseLiveQueryServer,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected