aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_output_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-07-17 23:20:13 +0200
committerBjørn Erik Pedersen <[email protected]>2017-07-17 23:20:13 +0200
commitdeccc54004cbe88ddbf8f3f951d3178dc0693189 (patch)
treeb2f0ee2079cd5cb731bb540dc3bf526f3f4e5a94 /hugolib/site_output_test.go
parent00b590d7ab4f3021814acceaf74c4eaf64edb226 (diff)
downloadhugo-deccc54004cbe88ddbf8f3f951d3178dc0693189.tar.gz
hugo-deccc54004cbe88ddbf8f3f951d3178dc0693189.zip
hubolib: Add HasShortcode
Fixes #3707
Diffstat (limited to 'hugolib/site_output_test.go')
-rw-r--r--hugolib/site_output_test.go3
1 files changed, 3 insertions, 0 deletions
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