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
@@ -4,9 +4,9 @@ var https = require('https')
class Http {
make(
url: string,
headers: string | null,
body: string | null,
ignoreCertificate: boolean | null
headers: string | null = null,
ignoreCertificate: boolean | null = false
): Promise<any> {
return new Promise((resolve, reject) => {
fetch(
+1 -1
View File
@@ -37,7 +37,7 @@ async function run() {
// make the request
http
.make(url, headers, body, insecure)
.make(url, body, headers, insecure)
.then(res => {
// if the status code is not 2xx
if (res.status >= 400) {