17 lines
230 B
Go
17 lines
230 B
Go
package cli
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestCliStopRequiresAServiceName(t *testing.T) {
|
|
cli := GetCli()
|
|
|
|
cli.SetArgs([]string{"stop"})
|
|
|
|
outcome := cli.Execute()
|
|
|
|
if outcome == nil {
|
|
t.Error("Expected error, got nil.")
|
|
}
|
|
}
|