mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
parent
2e89c79e9c
commit
4e81d3d4da
1 changed files with 5 additions and 2 deletions
|
|
@ -201,7 +201,8 @@ describe("TelegramDriver", () => {
|
|||
const driver = new TelegramDriver();
|
||||
await driver.send(
|
||||
{
|
||||
title: "OnionSchool/YangYiSongRequest: [CI — running](https://github.com/OnionSchool/YangYiSongRequest/actions)",
|
||||
title:
|
||||
"OnionSchool/YangYiSongRequest: [CI — running](https://github.com/OnionSchool/YangYiSongRequest/actions)",
|
||||
author: { name: "alice", iconUrl: "https://avatars.githubusercontent.com/u/1" },
|
||||
},
|
||||
{ platform: "telegram", chatId: "-100123" },
|
||||
|
|
@ -214,7 +215,9 @@ describe("TelegramDriver", () => {
|
|||
},
|
||||
);
|
||||
|
||||
const body = JSON.parse(String(capturedInit!.body)) as { link_preview_options: { url: string } };
|
||||
const body = JSON.parse(String(capturedInit!.body)) as {
|
||||
link_preview_options: { url: string };
|
||||
};
|
||||
const previewUrl = new URL(body.link_preview_options.url);
|
||||
expect(previewUrl.searchParams.get("content")).toBe(
|
||||
"OnionSchool/YangYiSongRequest: CI — running",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue