open-consul/command/version/version_test.go

16 lines
239 B
Go

package version
import (
"strings"
"testing"
"github.com/mitchellh/cli"
)
func TestVersionCommand_noTabs(t *testing.T) {
t.Parallel()
if strings.ContainsRune(New(cli.NewMockUi(), "").Help(), '\t') {
t.Fatal("help has tabs")
}
}