aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_add_comment_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/op_add_comment_test.go')
-rw-r--r--bug/op_add_comment_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/bug/op_add_comment_test.go b/bug/op_add_comment_test.go
index a38d0228..60364cf1 100644
--- a/bug/op_add_comment_test.go
+++ b/bug/op_add_comment_test.go
@@ -5,8 +5,9 @@ import (
"testing"
"time"
- "github.com/MichaelMure/git-bug/identity"
"github.com/stretchr/testify/assert"
+
+ "github.com/MichaelMure/git-bug/identity"
)
func TestAddCommentSerialize(t *testing.T) {
@@ -21,5 +22,9 @@ func TestAddCommentSerialize(t *testing.T) {
err = json.Unmarshal(data, &after)
assert.NoError(t, err)
+ // enforce creating the IDs
+ before.Id()
+ rene.Id()
+
assert.Equal(t, before, &after)
}