mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-18 14:24:21 +03:00
22 lines
424 B
Go
22 lines
424 B
Go
package bugcmd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/MichaelMure/git-bug/commands/bug/testenv"
|
|
)
|
|
|
|
func TestBugNew(t *testing.T) {
|
|
env, _ := testenv.NewTestEnvAndUser(t)
|
|
|
|
err := runBugNew(env, bugNewOptions{
|
|
nonInteractive: true,
|
|
message: "message",
|
|
title: "title",
|
|
})
|
|
require.NoError(t, err)
|
|
require.Regexp(t, "^[0-9A-Fa-f]{7} created\n$", env.Out.String())
|
|
}
|