mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
20 lines
327 B
Go
20 lines
327 B
Go
package cli_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"gh.tarampamp.am/error-pages/internal/cli"
|
|
)
|
|
|
|
func TestNewCommand(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
app := cli.NewApp("app")
|
|
|
|
assert.NotEmpty(t, app.Flags)
|
|
|
|
assert.NoError(t, app.Run([]string{"", "--log-level", "debug", "--log-format", "json"}))
|
|
}
|