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

@@ -5,6 +5,7 @@ import (
"TheAdversary/schema"
"net/http"
"net/http/httptest"
"path"
"testing"
"time"
)
@@ -49,7 +50,7 @@ func TestRecent(t *testing.T) {
"summary": articles[0].Summary,
"created": articles[0].Created,
"modified": articles[0].Modified,
"link": articles[0].Link,
"link": path.Base(articles[0].Link),
"markdown": "# Title",
"html": "<h1>Title</h1>",
},
@@ -57,7 +58,7 @@ func TestRecent(t *testing.T) {
"title": articles[1].Title,
"summary": articles[1].Summary,
"created": articles[1].Created,
"link": articles[1].Link,
"link": path.Base(articles[1].Link),
"markdown": "This is the most recent article",
"html": "<p>This is the most recent article</p>",
},