Skip to content

Commit 9128da1

Browse files
committed
test: add test for mdToHtml
1 parent c9b31e9 commit 9128da1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/md-to-html.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect, test } from "vitest";
2+
import { mdToHtml } from "./md-to-html";
3+
4+
test("mdToHtml", async () => {
5+
await expect(mdToHtml("**hello**")).resolves.toMatchInlineSnapshot(`"<strong>hello</strong>"`);
6+
});

0 commit comments

Comments
 (0)