Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix lint

Thiago Araujo da Silva81b2f04edc5e
diff --git a/backend/src/services/alert/channels/alert-channels.test.ts b/backend/src/services/alert/channels/alert-channels.test.ts
index 9b981f06f9..09907e9233 100644
--- a/backend/src/services/alert/channels/alert-channels.test.ts
+++ b/backend/src/services/alert/channels/alert-channels.test.ts
@@ -115,7 +115,11 @@ describe("buildSlackPayload", () => {
expect(mrkdwn).toContain("<!channel>");
expect(mrkdwn).toContain("a & b < c > d");
// The plain_text header does not parse markup, so it keeps the raw value.
- expect(slack.blocks[0].text?.text).toContain("<!channel> ping");
+ const headerBlock = slack.blocks[0];
+ expect(headerBlock.type).toBe("header");
+ if (headerBlock.type === "header") {
+ expect(headerBlock.text.text).toContain("<!channel> ping");
+ }
});
});