mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update parser tests
This commit is contained in:
@@ -14,17 +14,25 @@ func TestStringRender(t *testing.T) {
|
||||
text string
|
||||
expected string
|
||||
}{
|
||||
{
|
||||
text: "",
|
||||
expected: "",
|
||||
},
|
||||
{
|
||||
text: "Hello world!",
|
||||
expected: `Hello world!`,
|
||||
expected: "Hello world!\n",
|
||||
},
|
||||
{
|
||||
text: "**Hello** world!",
|
||||
expected: `Hello world!`,
|
||||
expected: "Hello world!\n",
|
||||
},
|
||||
{
|
||||
text: "**[your/slash](https://example.com)** world!",
|
||||
expected: `your/slash world!`,
|
||||
expected: "your/slash world!\n",
|
||||
},
|
||||
{
|
||||
text: "Test\n1. Hello\n2. World",
|
||||
expected: "Test\n1. Hello\n2. World\n",
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user