()
| 2135 | .then(async response => { |
| 2136 | const jobStatusId = response.headers['x-parse-job-status-id']; |
| 2137 | const checkJobStatus = async () => { |
| 2138 | const jobStatus = await getJobStatus(jobStatusId); |
| 2139 | return jobStatus.get('finishedAt') && jobStatus.get('message') === 'Hello, world!!!'; |
| 2140 | }; |
| 2141 | while (!(await checkJobStatus())) { |
| 2142 | await new Promise(resolve => setTimeout(resolve, 100)); |
| 2143 | } |
no test coverage detected