fix(tests): Fixes broken unit test

The new unit test was not passing an explict subcommand arg to the
root command in the unit test.
pull/2549/head
Taylor Thomas 7 years ago
parent 52a3405b1e
commit 5cfb4e8cf8

@ -351,6 +351,7 @@ func TestRootCmd(t *testing.T) {
}{ }{
{ {
name: "defaults", name: "defaults",
args: []string{"home"},
home: filepath.Join(os.Getenv("HOME"), "/.helm"), home: filepath.Join(os.Getenv("HOME"), "/.helm"),
}, },
{ {
@ -365,6 +366,7 @@ func TestRootCmd(t *testing.T) {
}, },
{ {
name: "with $HELM_HOME set", name: "with $HELM_HOME set",
args: []string{"home"},
envars: map[string]string{"HELM_HOME": "/bar"}, envars: map[string]string{"HELM_HOME": "/bar"},
home: "/bar", home: "/bar",
}, },

Loading…
Cancel
Save