summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2015-07-29 17:47:33 -0600
committerMatthew Holt <[email protected]>2015-07-29 17:47:33 -0600
commitf7129b219e6b253ba3c8c2de57a77bc574c58cd7 (patch)
tree52f5c20b9497cea504903e415bf5631119452426
parente1153f8797b111aa7054d0e6804fb9551f668bd4 (diff)
downloadcaddy-f7129b219e6b253ba3c8c2de57a77bc574c58cd7.tar.gz
caddy-f7129b219e6b253ba3c8c2de57a77bc574c58cd7.zip
Fix markdown tests that I broke
-rw-r--r--middleware/markdown/markdown_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/middleware/markdown/markdown_test.go b/middleware/markdown/markdown_test.go
index 917cff9bf..bb906972c 100644
--- a/middleware/markdown/markdown_test.go
+++ b/middleware/markdown/markdown_test.go
@@ -55,7 +55,7 @@ func TestMarkdown(t *testing.T) {
Title: "first",
Summary: "",
Date: time.Now(),
- Url: "/og/first.md",
+ URL: "/og/first.md",
},
},
},
@@ -191,8 +191,8 @@ func getTrue() bool {
for i, c := range md.Configs {
log.Printf("Test number: %d, configuration links: %v, config: %v", i, c.Links, c)
- if c.Links[0].Url != expectedLinks[i] {
- t.Fatalf("Expected %v got %v", expectedLinks[i], c.Links[0].Url)
+ if c.Links[0].URL != expectedLinks[i] {
+ t.Fatalf("Expected %v got %v", expectedLinks[i], c.Links[0].URL)
}
}