(url, headers, body)
| 651 | } |
| 652 | |
| 653 | async request(url, headers, body) { |
| 654 | return new Promise((resolve, reject) => { |
| 655 | let __config = headers?.headers ? headers : {headers: headers}; |
| 656 | (body ? $.post(url, body, __config) : $.get(url, __config)) |
| 657 | .then(data => { |
| 658 | this.__lt(data); |
| 659 | resolve(data) |
| 660 | }) |
| 661 | .catch(e => reject(e)); |
| 662 | }) |
| 663 | } |
| 664 | |
| 665 | __lt(data) { |
| 666 | if (this.appId.length !== 2) { |
no test coverage detected