Files
openclaw/extensions/nextcloud-talk/src/channel.status.test.ts
Josh Avant 024528c937 fix(nextcloud-talk): detect missing bot response feature (#79657)
* fix(nextcloud-talk): detect missing bot response feature

* docs(changelog): note nextcloud talk response fix
2026-05-09 00:06:44 -05:00

29 lines
821 B
TypeScript

import { describe, expect, it } from "vitest";
import { nextcloudTalkPlugin } from "./channel.js";
describe("nextcloud-talk channel status", () => {
it("surfaces missing response feature probes as config issues", () => {
const issues = nextcloudTalkPlugin.status?.collectStatusIssues?.([
{
accountId: "default",
configured: true,
probe: {
ok: false,
code: "missing_response_feature",
message: "Nextcloud Talk bot is missing --feature response.",
},
},
]);
expect(issues).toEqual([
{
channel: "nextcloud-talk",
accountId: "default",
kind: "config",
message: "Nextcloud Talk bot is missing --feature response.",
fix: "Add --feature response to the Talk bot.",
},
]);
});
});