mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-26 03:38:06 +00:00
14 lines
440 B
TypeScript
14 lines
440 B
TypeScript
import rehypeRaw from "rehype-raw";
|
|
import { expect, test } from "vitest";
|
|
|
|
import { reasoningPlugins, streamdownPlugins } from "@/core/streamdown/plugins";
|
|
|
|
test("streamdownPlugins includes rehypeRaw", () => {
|
|
expect(streamdownPlugins.rehypePlugins).toContain(rehypeRaw);
|
|
});
|
|
|
|
test("reasoningPlugins does not include rehypeRaw", () => {
|
|
const flat = reasoningPlugins.rehypePlugins?.flat();
|
|
expect(flat).not.toContain(rehypeRaw);
|
|
});
|