mirror of https://github.com/databricks/cli.git
15 lines
325 B
Go
15 lines
325 B
Go
package cmdio
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/libs/flags"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAskFailedInJsonMode(t *testing.T) {
|
|
l := NewLogger(flags.ModeJson)
|
|
_, err := l.Ask("What is your spirit animal?")
|
|
assert.ErrorContains(t, err, "question prompts are not supported in json mode")
|
|
}
|