fix: trim html output

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2023-04-10 22:24:32 +08:00
parent 34dfb5d876
commit fe16544355
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 3 additions and 16 deletions

View File

@ -58,22 +58,9 @@ describe("html", () => {
`,
true,
)
expect(contentHTML).toMatchInlineSnapshot(`
"
<div class=\\"table-wrapper\\"><table><thead><tr><th>a</th><th>b</th></tr></thead><tbody><tr><td>c</td><td>d</td></tr></tbody></table></div>"
`)
expect(contentHTML.trim()).toMatchInlineSnapshot(
'"<div class=\\"table-wrapper\\"><table><thead><tr><th>a</th><th>b</th></tr></thead><tbody><tr><td>c</td><td>d</td></tr></tbody></table></div>"',
)
})
test("callout", async () => {