Made link a single word
This commit is contained in:
@@ -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>",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user