(data: CallbackResponseData)
| 579 | } |
| 580 | |
| 581 | const finishLine = (data: CallbackResponseData) => { |
| 582 | const {multi, response} = data; |
| 583 | if (hooks.request_post) { |
| 584 | hooks.request_post(payload, response); |
| 585 | } |
| 586 | |
| 587 | let result; |
| 588 | if (multi) { |
| 589 | result = response as CallbackResponse; |
| 590 | } else { |
| 591 | const {output} = payload; |
| 592 | const id = output.substr(0, output.lastIndexOf('.')); |
| 593 | result = {[id]: (response as CallbackResponse).props}; |
| 594 | } |
| 595 | |
| 596 | recordProfile(result); |
| 597 | resolve(result); |
| 598 | }; |
| 599 | |
| 600 | const completeJob = () => { |
| 601 | if (job) { |
no test coverage detected
searching dependent graphs…