diff options
author | Michael Muré <batolettre@gmail.com> | 2019-03-28 01:21:41 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-28 01:21:41 +0100 |
commit | 0a71e6d269e60f844a2d08069ca5bdee9b91b388 (patch) | |
tree | 25afa74bdf5e3a394a398b5996fb0554306429d4 /bug/op_create_test.go | |
parent | 029861fa0ee99845dfdc3c0e38748608109233ed (diff) | |
download | git-bug-0a71e6d269e60f844a2d08069ca5bdee9b91b388.tar.gz |
commands: display comment's id in "git bug comment"
Diffstat (limited to 'bug/op_create_test.go')
-rw-r--r-- | bug/op_create_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bug/op_create_test.go b/bug/op_create_test.go index 92ac191d..aa1d8c10 100644 --- a/bug/op_create_test.go +++ b/bug/op_create_test.go @@ -23,7 +23,12 @@ func TestCreate(t *testing.T) { hash, err := create.Hash() assert.NoError(t, err) - comment := Comment{Author: rene, Message: "message", UnixTime: timestamp.Timestamp(create.UnixTime)} + comment := Comment{ + id: string(hash), + Author: rene, + Message: "message", + UnixTime: timestamp.Timestamp(create.UnixTime), + } expected := Snapshot{ Title: "title", |