Home

tmpl @44de3c2376466fb0b30795fdbc8a2b27a47684a6 - 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
}