mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 09:50:42 +00:00
test: tighten channel status fallback assertions
This commit is contained in:
@@ -195,15 +195,15 @@ describe("config-only channels status output", () => {
|
||||
it("uses setup fallback plugins so configured external channels can be shown", async () => {
|
||||
registerSingleTestPlugin("token-only", makeUnavailableTokenPlugin());
|
||||
listReadOnlyChannelPluginsForConfig.mockClear();
|
||||
const cfg = { channels: { "token-only": { enabled: true } } };
|
||||
|
||||
await formatLocalStatusSummary({ channels: { "token-only": { enabled: true } } });
|
||||
await formatLocalStatusSummary(cfg);
|
||||
|
||||
expect(listReadOnlyChannelPluginsForConfig).toHaveBeenCalledWith(
|
||||
expect.any(Object),
|
||||
expect.objectContaining({
|
||||
includeSetupFallbackPlugins: true,
|
||||
}),
|
||||
);
|
||||
expect(listReadOnlyChannelPluginsForConfig).toHaveBeenCalledOnce();
|
||||
expect(listReadOnlyChannelPluginsForConfig.mock.calls[0]).toStrictEqual([
|
||||
cfg,
|
||||
{ activationSourceConfig: cfg, includeSetupFallbackPlugins: true },
|
||||
]);
|
||||
});
|
||||
|
||||
it("shows configured-but-unavailable credentials distinctly from not configured", async () => {
|
||||
|
||||
Reference in New Issue
Block a user