mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test(discord): remove duplicate inbound context contract (#121318)
This commit is contained in:
committed by
GitHub
parent
b05a308351
commit
ba5895a976
@@ -1,17 +1,9 @@
|
||||
// Discord tests cover message handler.inbound context plugin behavior.
|
||||
import { expectChannelInboundContextContract as expectInboundContextContract } from "openclaw/plugin-sdk/channel-contract-testing";
|
||||
import { finalizeInboundContext } from "openclaw/plugin-sdk/reply-dispatch-runtime";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildDiscordInboundAccessContext } from "./inbound-context.js";
|
||||
import { buildFinalizedDiscordDirectInboundContext } from "./inbound-context.test-helpers.js";
|
||||
|
||||
describe("discord processDiscordMessage inbound context", () => {
|
||||
it("builds a finalized direct-message MsgContext shape", () => {
|
||||
const ctx = buildFinalizedDiscordDirectInboundContext();
|
||||
|
||||
expectInboundContextContract(ctx);
|
||||
});
|
||||
|
||||
it("keeps channel metadata out of GroupSystemPrompt", () => {
|
||||
const { groupSystemPrompt, channelStructuredContext } = buildDiscordInboundAccessContext({
|
||||
channelConfig: { systemPrompt: "Config prompt" } as never,
|
||||
|
||||
Reference in New Issue
Block a user