Made link a single word

This commit is contained in:
2022-01-24 15:44:12 +01:00
parent 000f030d9a
commit b358e1a97c
7 changed files with 37 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ func TestSearch(t *testing.T) {
{
"title": "First article",
"created": now.Unix(),
"link": "/article/first-article",
"link": "first-article",
"markdown": "This is my first article",
"html": "<p>This is my first article</p>",
},
@@ -30,7 +30,7 @@ func TestSearch(t *testing.T) {
"image": "https://upload.wikimedia.org/wikipedia/commons/0/05/Go_Logo_Blue.svg",
"created": now.Unix(),
"modified": now.Add(24 * time.Hour).Unix(),
"link": "/article/test",
"link": "test",
"markdown": "# Title",
"html": "<h1>Title</h1>",
},
@@ -38,7 +38,7 @@ func TestSearch(t *testing.T) {
"title": "owo",
"created": now.Unix(),
"modified": now.Add(12 * time.Hour).Unix(),
"link": "/article/owo",
"link": "owo",
"markdown": "owo",
"html": "<p>owo<p>",
},