From deccc54004cbe88ddbf8f3f951d3178dc0693189 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Mon, 17 Jul 2017 23:20:13 +0200 Subject: hubolib: Add HasShortcode Fixes #3707 --- hugolib/site_output_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hugolib/site_output_test.go') diff --git a/hugolib/site_output_test.go b/hugolib/site_output_test.go index 8455a13f7..941387e35 100644 --- a/hugolib/site_output_test.go +++ b/hugolib/site_output_test.go @@ -254,6 +254,9 @@ Content: {{ .Content }} require.Equal(t, "webcal://example.com/blog/index.ics", cal.Permalink()) } + require.True(t, home.HasShortcode("myShort")) + require.False(t, home.HasShortcode("doesNotExist")) + } // Issue #3447 -- cgit v1.2.3