mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 14:51:08 +00:00
test(ci): fix slack pairing notify typing
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user