aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-08-23 10:40:56 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-08-23 10:40:56 -0400
commitff1b7448c9dab4a3723cb12ada49bc73ea7dc755 (patch)
tree4982155834e4b6deb1291a01baef2e410fc10f05 /commands
parent7ba98bfadc2c4c7fd3e777074976b78d6171b163 (diff)
downloadgit-bug-ff1b7448c9dab4a3723cb12ada49bc73ea7dc755.tar.gz
fix(850): merge in CombinedId from 664
Diffstat (limited to 'commands')
-rw-r--r--commands/comment_edit_test.go15
-rw-r--r--commands/testdata/comment/edit-1-golden.txt2
2 files changed, 1 insertions, 16 deletions
diff --git a/commands/comment_edit_test.go b/commands/comment_edit_test.go
index 191a089c..50c1850b 100644
--- a/commands/comment_edit_test.go
+++ b/commands/comment_edit_test.go
@@ -3,7 +3,6 @@ package commands
import (
"testing"
- "github.com/MichaelMure/git-bug/bug"
"github.com/stretchr/testify/require"
)
@@ -17,20 +16,6 @@ func TestCommentEdit(t *testing.T) {
}
require.NoError(t, runCommentEdit(env.env, opts, []string{commentID}))
- // TODO: remove this comment and everything between the "snip"
- // comments when issue #850 is resolved.
-
- // ***** snip *****
- cache, err := env.env.backend.ResolveBugPrefix(bugID)
- require.NoError(t, err)
- bu, err := bug.Read(env.env.repo, cache.Id())
- require.NoError(t, err)
- for _, op := range bu.Operations() {
- t.Log("Operation: ", op)
- }
- t.Log("Compiled comments: ", bu.Compile().Comments)
- // ***** snip *****
-
require.NoError(t, runComment(env.env, []string{bugID}))
requireCommentsEqual(t, golden, env)
}
diff --git a/commands/testdata/comment/edit-1-golden.txt b/commands/testdata/comment/edit-1-golden.txt
index bcf127c0..3d83c02b 100644
--- a/commands/testdata/comment/edit-1-golden.txt
+++ b/commands/testdata/comment/edit-1-golden.txt
@@ -3,4 +3,4 @@
this is a bug message
- this is a bug comment
+ this is an altered bug comment