INNER CODE UNIT · Go

TestBatchCanBatchWithProject

miniscruff/changie · cmd/batch_test.go:87

func TestBatchCanBatchWithProject(t *testing.T) {
	cfg := batchTestConfig()
	cfg.VersionFileFormat = "{{.Version}}-custom-format.md"
	cfg.Projects = []core.ProjectConfig{
		{
			Label: "A",
			Key:   "a",
		},
	}
	// declared path but missing is accepted
	cfg.VersionHeaderPath = "header.md"

	then.WithTempDirConfig(t, cfg)

	writeChangeFile(t, cfg, &core.Change{Kind: "added", Body: "A", Project: "a"})
	writeChangeFile(t, cfg, &core.Change{Kind: "added", Body: "B", Project: "b"})
	writeChangeFile(t, cfg, &core.Change{Kind: "removed", Body: "C", Project: "a"})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…