fabric/cli/cli_test.go
2024-10-19 13:09:37 +02:00

21 lines
418 B
Go

package cli
import (
"github.com/danielmiessler/fabric/core"
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCli(t *testing.T) {
t.Skip("Skipping test for now, collision with flag -t")
originalArgs := os.Args
defer func() { os.Args = originalArgs }()
os.Args = []string{os.Args[0]}
err := Cli("test")
assert.Error(t, err)
assert.Equal(t, core.NoSessionPatternUserMessages, err.Error())
}