Fixing more stuff

This commit is contained in:
2022-02-06 18:27:30 +01:00
parent 8bc01e0984
commit e582a75d9e
13 changed files with 56 additions and 38 deletions

View File

@@ -95,7 +95,7 @@ func TestSearch(t *testing.T) {
Tags: []string{
"example",
},
Link: "/article/first-article",
Link: "article/first-article",
},
},
Code: http.StatusOK,
@@ -121,7 +121,7 @@ func TestSearch(t *testing.T) {
Created: now.Unix(),
Modified: now.Add(24 * time.Hour).Unix(),
Tags: []string{},
Link: "/article/test",
Link: "article/test",
},
{
Id: 3,
@@ -135,7 +135,7 @@ func TestSearch(t *testing.T) {
Created: now.Unix(),
Modified: now.Add(12 * time.Hour).Unix(),
Tags: []string{},
Link: "/article/owo",
Link: "article/owo",
},
},
Code: http.StatusOK,
@@ -158,7 +158,7 @@ func TestSearch(t *testing.T) {
Created: now.Unix(),
Modified: now.Add(12 * time.Hour).Unix(),
Tags: []string{},
Link: "/article/owo",
Link: "article/owo",
},
},
Code: http.StatusOK,
@@ -182,7 +182,7 @@ func TestSearch(t *testing.T) {
Tags: []string{
"example",
},
Link: "/article/first-article",
Link: "article/first-article",
},
},
Code: http.StatusOK,
@@ -206,7 +206,7 @@ func TestSearch(t *testing.T) {
Tags: []string{
"example",
},
Link: "/article/first-article",
Link: "article/first-article",
},
{
Id: 2,
@@ -222,7 +222,7 @@ func TestSearch(t *testing.T) {
Created: now.Unix(),
Modified: now.Add(24 * time.Hour).Unix(),
Tags: []string{},
Link: "/article/test",
Link: "article/test",
},
},
Code: http.StatusOK,