diff options
author | Anthony Fok <foka@debian.org> | 2018-06-12 21:27:47 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-06-15 09:03:56 +0200 |
commit | 42ed602580a672e420e1d860384e812f4871ff67 (patch) | |
tree | 18df9bf7f1622542086eeea4b89a25bc7b7a5258 /hugolib/hugo_sites_build_test.go | |
parent | 6a2968fd5c0116d93de0f379ac615e9076821899 (diff) |
hugolib: Replace deprecated {Get,}ByPrefix with {Get,}Match
Diffstat (limited to 'hugolib/hugo_sites_build_test.go')
-rw-r--r-- | hugolib/hugo_sites_build_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go index 221987b37..cf7c514f6 100644 --- a/hugolib/hugo_sites_build_test.go +++ b/hugolib/hugo_sites_build_test.go @@ -415,7 +415,7 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) { require.NotNil(t, bundleFr) require.Equal(t, "/blog/fr/bundles/b1/", bundleFr.RelPermalink()) require.Equal(t, 1, len(bundleFr.Resources)) - logoFr := bundleFr.Resources.GetByPrefix("logo") + logoFr := bundleFr.Resources.GetMatch("logo*") require.NotNil(t, logoFr) require.Equal(t, "/blog/fr/bundles/b1/logo.png", logoFr.RelPermalink()) b.AssertFileContent("public/fr/bundles/b1/logo.png", "PNG Data") @@ -424,7 +424,7 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) { require.NotNil(t, bundleEn) require.Equal(t, "/blog/en/bundles/b1/", bundleEn.RelPermalink()) require.Equal(t, 1, len(bundleEn.Resources)) - logoEn := bundleEn.Resources.GetByPrefix("logo") + logoEn := bundleEn.Resources.GetMatch("logo*") require.NotNil(t, logoEn) require.Equal(t, "/blog/en/bundles/b1/logo.png", logoEn.RelPermalink()) b.AssertFileContent("public/en/bundles/b1/logo.png", "PNG Data") |