aboutsummaryrefslogblamecommitdiffstats
path: root/commands/bug/bug_comment_add_test.go
blob: 55e285f445e052dee203acf7d3b2cffbaaead541 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                        
package bugcmd

import (
	"testing"

	"github.com/stretchr/testify/require"

	"github.com/MichaelMure/git-bug/commands/bug/testenv"
)

func TestBugCommentNew(t *testing.T) {
	const golden = "testdata/comment/add"

	env, bugID, _ := testenv.NewTestEnvAndBugWithComment(t)

	require.NoError(t, runBugComment(env, []string{bugID.String()}))
	requireCommentsEqual(t, golden, env)
}