test(webui): normalize math fixture checkout line endings
This commit is contained in:
1 parent
870dc2466f
commit
4fd6807d3d
2 files changed
+6
-2
No files matched your search
@@ -7,7 +7,9 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
import { parseMathAwareMarkdownBlocks } from "@/lib/markdown-streaming-blocks";
|
||||
import { remarkTexMath } from "@/lib/remark-tex-math";
|
||||
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");
|
||||
|
||||
const formula = String.raw`\[
|
||||
\tan\left(\frac{\mathrm{HFOV}}{2}\right)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user