Skip to content

Commit 38aae89

Browse files
committed
Update broken-markdown-variants.test.ts
1 parent d566c81 commit 38aae89

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

packages/remend/__tests__/broken-markdown-variants.test.ts

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ describe("multiple incomplete links", () => {
106106

107107
it("should handle one complete and one incomplete link", () => {
108108
const result = remend("[first](url1) and [second");
109-
expect(result).toBe("[first](url1) and [second](streamdown:incomplete-link)");
109+
expect(result).toBe(
110+
"[first](url1) and [second](streamdown:incomplete-link)"
111+
);
110112
});
111113

112114
it("should handle nested incomplete brackets", () => {
@@ -250,9 +252,7 @@ describe("KaTeX with complex content", () => {
250252
});
251253

252254
it("should close inline katex when enabled", () => {
253-
expect(remend("$x^2 + y^2", { inlineKatex: true })).toBe(
254-
"$x^2 + y^2$"
255-
);
255+
expect(remend("$x^2 + y^2", { inlineKatex: true })).toBe("$x^2 + y^2$");
256256
});
257257

258258
it("should not treat currency as katex without inlineKatex", () => {
@@ -493,9 +493,7 @@ describe("disabled handlers via options", () => {
493493
});
494494

495495
it("should close italic even when bold is disabled", () => {
496-
expect(remend("**bold *italic", { bold: false })).toBe(
497-
"**bold *italic*"
498-
);
496+
expect(remend("**bold *italic", { bold: false })).toBe("**bold *italic*");
499497
});
500498

501499
it("should not close anything when all are disabled", () => {
@@ -512,9 +510,7 @@ describe("disabled handlers via options", () => {
512510
it("should not close bold when asterisk in content blocks pattern (italic disabled)", () => {
513511
// Bold pattern can't match when * appears in content; italic is disabled
514512
// So nothing closes
515-
expect(remend("**bold *italic", { italic: false })).toBe(
516-
"**bold *italic"
517-
);
513+
expect(remend("**bold *italic", { italic: false })).toBe("**bold *italic");
518514
});
519515

520516
it("should close strikethrough but not bold when bold is disabled", () => {
@@ -598,8 +594,8 @@ describe("real-world AI streaming patterns", () => {
598594
});
599595

600596
it("should handle link with incomplete formatting after it", () => {
601-
expect(
602-
remend("[click here](https://example.com) for **more")
603-
).toBe("[click here](https://example.com) for **more**");
597+
expect(remend("[click here](https://example.com) for **more")).toBe(
598+
"[click here](https://example.com) for **more**"
599+
);
604600
});
605601
});

0 commit comments

Comments
 (0)