From: Bjørn Erik Pedersen Date: Thu, 27 Apr 2017 11:00:24 +0000 (+0200) Subject: hubolib: Narrow a test assertion X-Git-Tag: v0.21~86 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8d0917af0ab257994fc923eaef20453f5f1b580b;p=brevno-suite%2Fhugo hubolib: Narrow a test assertion --- diff --git a/hugolib/page_paths_test.go b/hugolib/page_paths_test.go index 5f0fa355..1270ce71 100644 --- a/hugolib/page_paths_test.go +++ b/hugolib/page_paths_test.go @@ -149,7 +149,7 @@ func TestPageTargetPath(t *testing.T) { expected := test.expected // TODO(bep) simplify - if test.d.BaseName == test.d.Type.BaseName { + if test.d.Kind == KindPage && test.d.BaseName == test.d.Type.BaseName { } else if test.d.Kind == KindHome && test.d.Type.Path != "" { } else if (!strings.HasPrefix(expected, "/index") || test.d.Addends != "") && test.d.URL == "" && isUgly {