test(ci): fix slack pairing notify typing

This commit is contained in:
Peter Steinberger 2026-04-03 21:05:49 +01:00
parent 78022740fc
commit 328b7bee75
No known key found for this signature in database
1 changed files with 14 additions and 14 deletions

View File

@ -190,21 +190,21 @@ describe("slackPlugin actions", () => {
});
it("uses configured defaultAccount for pairing approval notifications", async () => {
const cfg = {
channels: {
slack: {
defaultAccount: "work",
accounts: {
work: {
botToken: "xoxb-work",
},
},
},
},
} as OpenClawConfig;
setSlackRuntime({
config: {
loadConfig: () =>
({
channels: {
slack: {
defaultAccount: "work",
accounts: {
work: {
botToken: "xoxb-work",
},
},
},
},
}) as OpenClawConfig,
loadConfig: () => cfg,
},
} as never);
@ -214,8 +214,8 @@ describe("slackPlugin actions", () => {
}
await notify({
cfg,
id: "U12345678",
message: "approved",
});
expect(sendMessageSlackMock).toHaveBeenCalledWith(