mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -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)
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user