error-pages/internal/cli/app_test.go

19 lines
280 B
Go
Raw Normal View History

2023-01-29 10:54:56 +00:00
package cli_test
import (
2024-07-03 14:12:13 +00:00
"context"
2023-01-29 10:54:56 +00:00
"testing"
"github.com/stretchr/testify/assert"
"gh.tarampamp.am/error-pages/internal/cli"
2023-01-29 10:54:56 +00:00
)
2024-07-03 14:12:13 +00:00
func TestNewApp(t *testing.T) {
2023-01-29 10:54:56 +00:00
t.Parallel()
2024-07-03 14:12:13 +00:00
app := cli.NewApp("appName")
2023-01-29 10:54:56 +00:00
2024-07-03 14:12:13 +00:00
assert.NoError(t, app.Run(context.Background(), []string{""}))
2023-01-29 10:54:56 +00:00
}