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
3dce114cec
commit
17d10db845
11 changed files with 50 additions and 56 deletions
|
|
@ -521,9 +521,7 @@ describe("limits and localization", () => {
|
|||
|
||||
describe("forge source branding", () => {
|
||||
it("github events brand as GitHub with the favicon", () => {
|
||||
expect(
|
||||
forgeInfo({ event: "push", provider: "github", payload: {} }),
|
||||
).toEqual({
|
||||
expect(forgeInfo({ event: "push", provider: "github", payload: {} })).toEqual({
|
||||
name: "GitHub",
|
||||
url: "https://github.com",
|
||||
iconUrl: "https://github.com/favicon.ico",
|
||||
|
|
@ -542,9 +540,7 @@ describe("forge source branding", () => {
|
|||
url: "https://git.example.com",
|
||||
iconUrl: "https://git.example.com/favicon.ico",
|
||||
});
|
||||
expect(
|
||||
forgeInfo({ event: "push", provider: "gitea", payload: {} }),
|
||||
).toBeUndefined();
|
||||
expect(forgeInfo({ event: "push", provider: "gitea", payload: {} })).toBeUndefined();
|
||||
});
|
||||
|
||||
it("custom events brand as a plain label without links", () => {
|
||||
|
|
|
|||
|
|
@ -35,11 +35,13 @@ describe("telegram renderNeutralMessage", () => {
|
|||
const out = renderNeutralMessage({
|
||||
title: "acme/widget: Add feature",
|
||||
footer: "acme/widget",
|
||||
forge: { name: "GitHub", url: "https://github.com", iconUrl: "https://github.com/favicon.ico" },
|
||||
forge: {
|
||||
name: "GitHub",
|
||||
url: "https://github.com",
|
||||
iconUrl: "https://github.com/favicon.ico",
|
||||
},
|
||||
});
|
||||
expect(out).toContain(
|
||||
'<i><a href="https://github.com">GitHub</a> · acme/widget</i>',
|
||||
);
|
||||
expect(out).toContain('<i><a href="https://github.com">GitHub</a> · acme/widget</i>');
|
||||
|
||||
const gitea = renderNeutralMessage({
|
||||
title: "org/repo: Add feature",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue