bug_comment_add_test.go
1package bugcmd
2
3import (
4 "testing"
5
6 "github.com/stretchr/testify/require"
7
8 "github.com/git-bug/git-bug/commands/bug/testenv"
9)
10
11func TestBugCommentNew(t *testing.T) {
12 const golden = "testdata/comment/add"
13
14 env, bugID, _ := testenv.NewTestEnvAndBugWithComment(t)
15
16 require.NoError(t, runBugComment(env, []string{bugID.String()}))
17 requireCommentsEqual(t, golden, env)
18}