blob: 50c1850bc282733559040bbc82f51a3301f182d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package commands
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestCommentEdit(t *testing.T) {
const golden = "testdata/comment/edit"
env, bugID, commentID := newTestEnvAndBugWithComment(t)
opts := commentEditOptions{
message: "this is an altered bug comment",
}
require.NoError(t, runCommentEdit(env.env, opts, []string{commentID}))
require.NoError(t, runComment(env.env, []string{bugID}))
requireCommentsEqual(t, golden, env)
}
|