mirror of https://github.com/databricks/cli.git
16 lines
391 B
Go
16 lines
391 B
Go
|
package internal
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
assert "github.com/databricks/cli/libs/dyn/dynassert"
|
||
|
)
|
||
|
|
||
|
func TestUnknownCommand(t *testing.T) {
|
||
|
stdout, stderr, err := RequireErrorRun(t, "unknown-command")
|
||
|
|
||
|
assert.Error(t, err, "unknown command", `unknown command "unknown-command" for "databricks"`)
|
||
|
assert.Equal(t, "", stdout.String())
|
||
|
assert.Contains(t, stderr.String(), "unknown command")
|
||
|
}
|