mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 23:51:36 +00:00
15 lines
563 B
TypeScript
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",
|
|
});
|
|
});
|
|
});
|