| 28 | }; |
| 29 | |
| 30 | const pushCompleted = async pushId => { |
| 31 | const query = new Parse.Query('_PushStatus'); |
| 32 | query.equalTo('objectId', pushId); |
| 33 | let result = await query.first({ useMasterKey: true }); |
| 34 | while (!(result && result.get('status') === 'succeeded')) { |
| 35 | await jasmine.timeout(); |
| 36 | result = await query.first({ useMasterKey: true }); |
| 37 | } |
| 38 | }; |
| 39 | |
| 40 | const sendPush = (body, where, config, auth, now) => { |
| 41 | const pushController = new PushController(); |
no test coverage detected