Slack: fix directory test runtime stub

This commit is contained in:
Vincent Koc 2026-03-18 10:54:00 -07:00
parent 7d08070dd7
commit ea74123ab2
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/slack";
import { describe, expect, it, vi } from "vitest";
import { createRuntimeEnv } from "../../../test/helpers/extensions/runtime-env.js";
import { slackOutbound } from "./outbound-adapter.js";
const handleSlackActionMock = vi.fn();
@ -261,7 +262,7 @@ describe("slackPlugin directory", () => {
},
},
},
runtime: undefined,
runtime: createRuntimeEnv(),
}),
).resolves.toEqual([{ id: "user:u123", kind: "user" }]);
});