mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-06 15:14:41 -04:00
Fix markdown tests that I broke
This commit is contained in:
parent
e1153f8797
commit
f7129b219e
@ -55,7 +55,7 @@ func TestMarkdown(t *testing.T) {
|
|||||||
Title: "first",
|
Title: "first",
|
||||||
Summary: "",
|
Summary: "",
|
||||||
Date: time.Now(),
|
Date: time.Now(),
|
||||||
Url: "/og/first.md",
|
URL: "/og/first.md",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -191,8 +191,8 @@ func getTrue() bool {
|
|||||||
|
|
||||||
for i, c := range md.Configs {
|
for i, c := range md.Configs {
|
||||||
log.Printf("Test number: %d, configuration links: %v, config: %v", i, c.Links, c)
|
log.Printf("Test number: %d, configuration links: %v, config: %v", i, c.Links, c)
|
||||||
if c.Links[0].Url != expectedLinks[i] {
|
if c.Links[0].URL != expectedLinks[i] {
|
||||||
t.Fatalf("Expected %v got %v", expectedLinks[i], c.Links[0].Url)
|
t.Fatalf("Expected %v got %v", expectedLinks[i], c.Links[0].URL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user