test(discord): remove duplicate inbound context contract (#121318)

This commit is contained in:
Peter Steinberger
2026-08-09 18:28:14 -07:00
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,