saasitone/templates/templates_test.go

19 lines
334 B
Go
Raw Normal View History

package templates
import (
"fmt"
"testing"
"github.com/stretchr/testify/require"
)
func TestGet(t *testing.T) {
_, err := Get().Open(fmt.Sprintf("pages/%s.gohtml", PageHome))
require.NoError(t, err)
}
func TestGetOS(t *testing.T) {
_, err := GetOS().Open(fmt.Sprintf("pages/%s.gohtml", PageHome))
require.NoError(t, err)
}