blob: 21407ac6e0bef18dbe9eed6186f916deee088bdd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package bugcmd
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/git-bug/git-bug/commands/bug/testenv"
)
func TestBugCommentEdit(t *testing.T) {
const golden = "testdata/comment/edit"
env, bugID, commentID := testenv.NewTestEnvAndBugWithComment(t)
opts := bugCommentEditOptions{
message: "this is an altered bug comment",
}
require.NoError(t, runBugCommentEdit(env, opts, []string{commentID.Human()}))
require.NoError(t, runBugComment(env, []string{bugID.Human()}))
requireCommentsEqual(t, golden, env)
}
|