This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
thrempp/cmd/serve_test.go

18 lines
249 B
Go
Raw Permalink Normal View History

2019-06-01 02:59:00 +02:00
package cmd
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestServe(t *testing.T) {
assert := assert.New(t)
// fail on open file
RootCmd.SetArgs([]string{"serve", "--config", "a"})
assert.Panics(func() {
Execute()
})
}