test(webui): normalize math fixture checkout line endings

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-02 20:44:50 +08:00
1 parent 870dc2466f
commit 4fd6807d3d
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -2,7 +2,9 @@ import { render, waitFor } from "@testing-library/react";
import { expect, it } from "vitest";
import { MarkdownText } from "@/components/MarkdownText";
import mixedMath from "@/tests/fixtures/markdown-math-mixed.md?raw";
import mixedMathFixture from "@/tests/fixtures/markdown-math-mixed.md?raw";
const mixedMath = mixedMathFixture.replaceAll("\r\n", "\n");
it("retains a rendered TeX formula when an assistant response completes in streaming layout", async () => {
const source = String.raw`Before