compose/ecs/cmd/commands/root_test.go
Nicolas De Loof d957987471
Unit tests for cobra commands
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-17 21:26:13 +02:00

14 lines
261 B
Go

package commands
import (
"testing"
"gotest.tools/v3/assert"
)
func TestUnknownCommand(t *testing.T) {
root := NewRootCmd(nil)
_, _, err := root.Find([]string{"unknown_command"})
assert.Error(t, err, "unknown command \"unknown_command\" for \"ecs\"")
}