consul/command/operator/autopilot/operator_autopilot_test.go
Frank Schroeder 56b24d3d4f commands: cleanup help and synopsis.
* move Help and Synopsis to bottom
* make help and synopsis constants
* make sure help output is formatted
2017-10-18 00:08:45 +02:00

13 lines
189 B
Go

package autopilot
import (
"strings"
"testing"
)
func TestOperatorAutopilotCommand_noTabs(t *testing.T) {
if strings.ContainsRune(New().Help(), '\t') {
t.Fatal("help has tabs")
}
}