(id, socket, hasMasterKey)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…