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') }) })