Home

tmpl @main - refs - log - search -
https://git.jolheiser.com/tmpl.git
Template automation
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
}