mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
* chore: add /v2 to import module path go mod requires semantic versioning with versions greater than 1.x This was a mechanical update by running: ``` go install github.com/marwan-at-work/mod/cmd/mod@latest mod upgrade ``` Migrate generated files to import /v2 * Fix gen
27 lines
616 B
Go
27 lines
616 B
Go
package cli
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/coder/coder/v2/cli"
|
|
"github.com/coder/coder/v2/cli/clibase"
|
|
"github.com/coder/coder/v2/cli/clitest"
|
|
)
|
|
|
|
//nolint:tparallel,paralleltest
|
|
func TestEnterpriseCommandHelp(t *testing.T) {
|
|
// Only test the enterprise commands
|
|
getCmds := func(t *testing.T) *clibase.Cmd {
|
|
// 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())
|
|
}
|