Files
coder/enterprise/cli/root_internal_test.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
607 B
Go
Raw Normal View History

package cli
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/coder/coder/v2/cli"
"github.com/coder/coder/v2/cli/clitest"
"github.com/coder/serpent"
)
//nolint:tparallel,paralleltest
func TestEnterpriseCommandHelp(t *testing.T) {
// Only test the enterprise commands
2024-03-17 09:45:26 -05:00
getCmds := func(t *testing.T) *serpent.Command {
// Must return a fresh instance of cmds each time.
t.Helper()
var root cli.RootCmd
rootCmd, err := root.Command((&RootCmd{}).enterpriseOnly())
require.NoError(t, err)
return rootCmd
}
clitest.TestCommandHelp(t, getCmds, clitest.DefaultCases())
}