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"
|
|
|
|
|
2023-02-23 17:49:45 +00:00
|
|
|
"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
|
|
|
}
|