@@ -11,16 +11,18 @@ import (
11
11
"github.com/coder/coder/cli/clitest"
12
12
"github.com/coder/coder/coderd/coderdtest"
13
13
"github.com/coder/coder/codersdk"
14
+ "github.com/coder/coder/enterprise/cli"
15
+ "github.com/coder/coder/enterprise/coderd/coderdenttest"
14
16
"github.com/coder/coder/pty/ptytest"
15
17
)
16
18
17
19
func TestFeaturesList (t * testing.T ) {
18
20
t .Parallel ()
19
21
t .Run ("Table" , func (t * testing.T ) {
20
22
t .Parallel ()
21
- client := coderdtest .New (t , nil )
23
+ client := coderdenttest .New (t , nil )
22
24
coderdtest .CreateFirstUser (t , client )
23
- cmd , root := clitest .New ( t , "features" , "list" )
25
+ cmd , root := clitest .NewWithSubcommands ( t , cli . EnterpriseSubcommands () , "features" , "list" )
24
26
clitest .SetupConfig (t , client , root )
25
27
pty := ptytest .New (t )
26
28
cmd .SetIn (pty .Input ())
@@ -36,9 +38,9 @@ func TestFeaturesList(t *testing.T) {
36
38
t .Run ("JSON" , func (t * testing.T ) {
37
39
t .Parallel ()
38
40
39
- client := coderdtest .New (t , nil )
41
+ client := coderdenttest .New (t , nil )
40
42
coderdtest .CreateFirstUser (t , client )
41
- cmd , root := clitest .New ( t , "features" , "list" , "-o" , "json" )
43
+ cmd , root := clitest .NewWithSubcommands ( t , cli . EnterpriseSubcommands () , "features" , "list" , "-o" , "json" )
42
44
clitest .SetupConfig (t , client , root )
43
45
doneChan := make (chan struct {})
44
46
0 commit comments