feature: tests

This commit is contained in:
Joel Male
2022-11-10 23:06:47 +10:00
parent ee20d8c79e
commit 80541e6fb8
52 changed files with 6109 additions and 832 deletions
+2 -2
View File
@@ -6940,7 +6940,7 @@ exports.http = void 0;
const node_fetch_1 = __nccwpck_require__(4429);
var https = __nccwpck_require__(5687);
class Http {
make(url, headers, body, ignoreCertificate) {
make(url, body, headers = null, ignoreCertificate = false) {
return new Promise((resolve, reject) => {
(0, node_fetch_1.default)(url, this.getOptions('post', headers, body, ignoreCertificate)).then((res) => resolve(res));
});
@@ -7010,7 +7010,7 @@ function run() {
}
core.info(`Sending webhook request to ${url}`);
http_1.http
.make(url, headers, body, insecure)
.make(url, body, headers, insecure)
.then(res => {
if (res.status >= 400) {
error(res.status);