From 2177fb4948e61610a69edea55b2887725c2ae606 Mon Sep 17 00:00:00 2001 From: silverpill Date: Fri, 7 Oct 2022 18:33:48 +0000 Subject: [PATCH] Add more tests for markdown renderer --- tests/unit/markdown.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/markdown.spec.ts b/tests/unit/markdown.spec.ts index 4866fcd..2379156 100644 --- a/tests/unit/markdown.spec.ts +++ b/tests/unit/markdown.spec.ts @@ -3,8 +3,8 @@ import { renderMarkdownLite } from "@/utils/markdown" describe("Render markdown", () => { it("Render markdown lite", () => { - const text = "test **bold** ~~strike~~ with `code`, html and https://example.com\nand a new line" + const text = "test **bold** test *italic* test ~~strike~~ with `code`, html and https://example.com\nnew line\n\ntwo new lines and a list:\n- item 1\n- item 2\n\ncode block:\n```\nlet test\ntest = 1\n```" const html = renderMarkdownLite(text) - expect(html).to.equal('test bold ~~strike~~ with code, <span>html</span> and https://example.com
and a new line') + expect(html).to.equal('test bold test italic test ~~strike~~ with code, <span>html</span> and https://example.com
new line

two new lines and a list:
- item 1
- item 2

code block:
let test test = 1') }) })