INNER CODE UNIT · Go
TestBatchErrorBadComponentFormat
miniscruff/changie · cmd/batch_test.go:515
func TestBatchErrorBadComponentFormat(t *testing.T) {
cfg := batchTestConfig()
cfg.ComponentFormat = "bad {{...buh}}"
batch := NewBatch(time.Now, core.NewTemplateCache())
then.WithTempDirConfig(t, cfg)
writeChangeFile(t, cfg, &core.Change{Component: "ui", Body: "C"})
err := batch.Run(batch.Command, []string{"v0.2.3"})
then.NotNil(t, err)
}
func TestBatchErrorBadChangeFormat(t *testing.T) {
cfg := batchTestConfig()
cfg.ChangeFormat = "bad {{...buh}}"
batch := NewBatch(time.Now, core.NewTemplateCache())
then.WithTempDirConfig(t, cfg)