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
+10
View File
@@ -0,0 +1,10 @@
import { http } from '../src/http'
import {expect, test} from '@jest/globals'
test('it makes a post request', async () => {
const url = 'https://httpbin.org/post'
const body = '{"hello": "world"}'
const insecure = false
const res = await http.make(url, body)
expect(res.status).toBe(200)
})