Skip to content

Commit 0ea5402

Browse files
committed
test(msteams): use valid open DM fixture
1 parent a1e25e8 commit 0ea5402

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/msteams/src/monitor-handler/message-handler.authz.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,9 @@ describe("msteams monitor handler authz", () => {
10331033
it("replaces a DM quote preview with the complete Graph message", async () => {
10341034
resetThreadMocks();
10351035
graphThreadMockState.fetchChatMessageText.mockResolvedValueOnce("complete quoted message");
1036-
const { deps } = createDeps({ channels: { msteams: { dmPolicy: "open" } } } as OpenClawConfig);
1036+
const { deps } = createDeps({
1037+
channels: { msteams: { dmPolicy: "open", allowFrom: ["*"] } },
1038+
} as OpenClawConfig);
10371039
const handler = createMSTeamsMessageHandler(deps);
10381040

10391041
await handler(

0 commit comments

Comments
 (0)