Skip to content

Commit fb35cbb

Browse files
committed
fix: replace unrunnable func comparison with behavioral test
1 parent 55d115a commit fb35cbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/install_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"path/filepath"
55
"testing"
66

7-
"github.com/spf13/cobra"
87
"github.com/stretchr/testify/assert"
98
"github.com/stretchr/testify/require"
109
)
@@ -24,5 +23,6 @@ func TestInstallSkillsCmd(t *testing.T) {
2423
}
2524

2625
func TestInstallSkillsCmd_NoArgs(t *testing.T) {
27-
assert.Equal(t, installSkillsCmd.Args, cobra.NoArgs)
26+
err := installSkillsCmd.Args(installSkillsCmd, []string{"unexpected"})
27+
assert.Error(t, err)
2828
}

0 commit comments

Comments
 (0)