Home

tmpl @d02502078f5c143f365e07447af8ca4f0a5f178c - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tmpl / cmd / init_test.go
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
package cmd

import (
	"strings"
	"testing"

	"go.jolheiser.com/tmpl/schema"

	"github.com/matryer/is"
)

func TestInitSchema(t *testing.T) {
	assert := is.New(t)

	err := schema.Lint(strings.NewReader(initConfig))
	assert.NoErr(err) // Init config should conform to schema
}