2023-12-12 17:07:58 -08:00
|
|
|
package templates
|
|
|
|
|
|
|
|
import (
|
2023-12-16 08:07:20 -08:00
|
|
|
"fmt"
|
2023-12-12 17:07:58 -08:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGet(t *testing.T) {
|
2023-12-16 08:07:20 -08:00
|
|
|
_, err := Get().Open(fmt.Sprintf("pages/%s.gohtml", PageHome))
|
2023-12-12 17:07:58 -08:00
|
|
|
require.NoError(t, err)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestGetOS(t *testing.T) {
|
2023-12-16 08:07:20 -08:00
|
|
|
_, err := GetOS().Open(fmt.Sprintf("pages/%s.gohtml", PageHome))
|
2023-12-12 17:07:58 -08:00
|
|
|
require.NoError(t, err)
|
|
|
|
}
|