gitlab_monitor/test/manageCIMonitorReq.test.ts
zhaoyingbo 3471576ed7
All checks were successful
CI Monitor MIflow / build-image (push) Successful in 47s
feat: 修改打印逻辑 & 请求等待结果
2024-08-09 03:40:37 +00:00

13 lines
393 B
TypeScript

import { expect, test } from "bun:test"
import { manageCIMonitorReq } from "../routes/ci"
import netTool from "../service/netTool"
test("manageCIMonitorReq", async () => {
const req = new Request(
"https://ci-monitor.xiaomiwh.cn/gitlab/ci?chat_id=oc_8c789ce8f4ecc6695bb63ca6ec4c61ea"
)
const res = await manageCIMonitorReq(req)
expect(res).toEqual(netTool.ok("reporting..."))
})