Skip to content
Myr

cmd: Fix tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 4db577d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:cobra/cmd/init_test.go+1 added-1 removed
16 unmodified lines
17 project := NewProject(projectName)18 defer os.RemoveAll(project.AbsPath())1920 os.Args = []string{"cobra", "init", projectName}21 if err := RootCmd.Execute(); err != nil {21 if err := rootCmd.Execute(); err != nil {22 t.Fatal("Error by execution:", err)23 }2425 expectedFiles := []string{".", "cmd", "LICENSE", "main.go", "cmd/root.go"}
47 unmodified lines