chore: Fix types in tests 35/N.

This commit is contained in:
cpojer
2026-02-17 15:46:25 +09:00
parent ed75d30ad3
commit 2a4ca7671e
8 changed files with 35 additions and 21 deletions

View File

@@ -25,7 +25,7 @@ function stubChannelPlugin(params: {
blurb: "test stub",
},
capabilities: {
chatTypes: ["dm", "group"],
chatTypes: ["direct", "group"],
},
security: {},
config: {
@@ -1244,8 +1244,8 @@ describe("security audit", () => {
},
});
expect(res.deep?.gateway.ok).toBe(false);
expect(res.deep?.gateway.error).toContain("probe boom");
expect(res.deep?.gateway?.ok).toBe(false);
expect(res.deep?.gateway?.error).toContain("probe boom");
expect(res.findings).toEqual(
expect.arrayContaining([
expect.objectContaining({ checkId: "gateway.probe_failed", severity: "warn" }),