(parseLiveQueryServer, clientId)
| 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, |
no outgoing calls
no test coverage detected