photoprism/internal/test/context_test.go
Michael Mayer 9872cfaa50 Add ConfigCommand test #58
- Includes refactoring of existing packages to enable testing of commands
2018-11-17 13:57:19 +01:00

15 lines
208 B
Go

package test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli"
)
func TestCliContext(t *testing.T) {
result := CliContext()
assert.IsType(t, new(cli.Context), result)
}