Files
openclaw/extensions/discord/src/draft-chunking.test.ts
2026-06-10 13:35:19 +05:30

15 lines
563 B
TypeScript

// Discord tests cover draft chunking plugin behavior.
import { describe, expect, it } from "vitest";
import { resolveDiscordDraftStreamingChunking } from "./draft-chunking.js";
import { EMPTY_DISCORD_TEST_CONFIG } from "./test-support/config.js";
describe("resolveDiscordDraftStreamingChunking", () => {
it("returns sane defaults when discord draft chunking is unset", () => {
expect(resolveDiscordDraftStreamingChunking(EMPTY_DISCORD_TEST_CONFIG)).toEqual({
minChars: 200,
maxChars: 800,
breakPreference: "paragraph",
});
});
});