MCPcopy Create free account
hub / github.com/parse-community/parse-server / mockClient

Function mockClient

spec/ParseLiveQueryServer.spec.js:24–37  ·  view source on GitHub ↗
(id, socket, hasMasterKey)

Source from the content-addressed store, hash-verified

22 );
23 // Mock Client
24 const mockClient = function (id, socket, hasMasterKey) {
25 this.pushConnect = jasmine.createSpy('pushConnect');
26 this.pushSubscribe = jasmine.createSpy('pushSubscribe');
27 this.pushUnsubscribe = jasmine.createSpy('pushUnsubscribe');
28 this.pushDelete = jasmine.createSpy('pushDelete');
29 this.pushCreate = jasmine.createSpy('pushCreate');
30 this.pushEnter = jasmine.createSpy('pushEnter');
31 this.pushUpdate = jasmine.createSpy('pushUpdate');
32 this.pushLeave = jasmine.createSpy('pushLeave');
33 this.addSubscriptionInfo = jasmine.createSpy('addSubscriptionInfo');
34 this.getSubscriptionInfo = jasmine.createSpy('getSubscriptionInfo');
35 this.deleteSubscriptionInfo = jasmine.createSpy('deleteSubscriptionInfo');
36 this.hasMasterKey = hasMasterKey;
37 };
38 mockClient.pushError = jasmine.createSpy('pushError');
39 jasmine.mockLibrary('../lib/LiveQuery/Client', 'Client', mockClient);
40 // Mock Subscription

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…