From fe16544355bdc657d1054ecd261be71e4f231f2a Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 10 Apr 2023 22:24:32 +0800 Subject: [PATCH] fix: trim html output Signed-off-by: Innei --- src/markdown/index.test.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/markdown/index.test.ts b/src/markdown/index.test.ts index 1e6e1590..cdee7a55 100644 --- a/src/markdown/index.test.ts +++ b/src/markdown/index.test.ts @@ -58,22 +58,9 @@ describe("html", () => { `, true, ) - expect(contentHTML).toMatchInlineSnapshot(` - " - - - - - - - - - - - - -
ab
cd
" - `) + expect(contentHTML.trim()).toMatchInlineSnapshot( + '"
ab
cd
"', + ) }) test("callout", async () => {