error-pages/templates/embed_test.go
2024-06-22 03:32:10 +04:00

23 lines
358 B
Go

package templates_test
import (
"testing"
"github.com/stretchr/testify/assert"
"gh.tarampamp.am/error-pages/templates"
)
func TestBuiltIn(t *testing.T) {
t.Parallel()
var content = templates.BuiltIn()
assert.True(t, len(content) > 0)
for name, data := range content {
assert.Regexp(t, `^[a-z0-9_\.-]+$`, name)
assert.NotEmpty(t, data)
}
}