diff options
Diffstat (limited to 'tpl/tplimpl/shortcodes_test.go')
-rw-r--r-- | tpl/tplimpl/shortcodes_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/tplimpl/shortcodes_test.go b/tpl/tplimpl/shortcodes_test.go index 7439f715a..da30d4149 100644 --- a/tpl/tplimpl/shortcodes_test.go +++ b/tpl/tplimpl/shortcodes_test.go @@ -85,9 +85,13 @@ func TestShortcodesTemplate(t *testing.T) { }) - t.Run("Template", func(t *testing.T) { + t.Run("Name", func(t *testing.T) { assert := require.New(t) + assert.Equal("foo.html", templateBaseName(templateShortcode, "shortcodes/foo.html")) + assert.Equal("foo.html", templateBaseName(templateShortcode, "_internal/shortcodes/foo.html")) + assert.Equal("test/foo.html", templateBaseName(templateShortcode, "shortcodes/test/foo.html")) + assert.True(true) }) |