aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-01-04 13:07:10 +0100
committerBjørn Erik Pedersen <[email protected]>2022-01-04 17:10:39 +0100
commit2b6063c3e388056597af88709ff017d15f53c962 (patch)
treea86d4dde3cd5b7df5bb5738a248a0da0c5f640fd /hugolib/site_test.go
parent56ab83a59712725e1ce0dd3fd516cc7c190c8478 (diff)
downloadhugo-2b6063c3e388056597af88709ff017d15f53c962.tar.gz
hugo-2b6063c3e388056597af88709ff017d15f53c962.zip
Misc depreation updates
* Deprecate .Page.Path when backed by a file * site.Permalinks * --ignoreVendor (use --ignoreVendorPaths) Closes #9348 Closes #9349
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index e25991164..73cea855a 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -957,7 +957,7 @@ func TestRefLinking(t *testing.T) {
func checkLinkCase(site *Site, link string, currentPage page.Page, relative bool, outputFormat string, expected string, t *testing.T, i int) {
t.Helper()
if out, err := site.refLink(link, currentPage, relative, outputFormat); err != nil || out != expected {
- t.Fatalf("[%d] Expected %q from %q to resolve to %q, got %q - error: %s", i, link, currentPage.Path(), expected, out, err)
+ t.Fatalf("[%d] Expected %q from %q to resolve to %q, got %q - error: %s", i, link, currentPage.Pathc(), expected, out, err)
}
}