25 lines
422 B
Go
Raw Normal View History

2019-05-01 15:36:58 -05:00
package cmd_test
import (
"testing"
"github.com/ian-howell/airshipctl/cmd"
"github.com/ian-howell/airshipctl/test"
2019-05-01 15:36:58 -05:00
)
func TestRoot(t *testing.T) {
cmdTests := []*test.CmdTest{
{
Name: "default",
CmdLine: "",
},
}
rootCmd, _, err := cmd.NewRootCmd(nil)
2019-05-24 15:38:59 -05:00
if err != nil {
t.Fatalf("Could not create root command: %s", err.Error())
}
for _, tt := range cmdTests {
test.RunTest(t, tt, rootCmd)
}
2019-05-01 15:36:58 -05:00
}