mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-09-01 13:50:45 +08:00
feature: tests
This commit is contained in:
@@ -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)
|
||||
})
|
||||
Reference in New Issue
Block a user