aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-13 22:53:53 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-13 22:53:53 +0200
commit55aef8c38773a7cce39a5e154f8221a4b817ac04 (patch)
tree6fb23c7f099a69c9abfdca7f05fee108f3ec6786 /tests
parent35d64e4f9e3e0a0ffd041e430a64650bb8ea71fa (diff)
downloadgit-bug-55aef8c38773a7cce39a5e154f8221a4b817ac04.tar.gz
implement AddComment
Diffstat (limited to 'tests')
-rw-r--r--tests/operation_iterator_test.go7
-rw-r--r--tests/operation_pack_test.go1
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/operation_iterator_test.go b/tests/operation_iterator_test.go
index b2f01513..03747fa4 100644
--- a/tests/operation_iterator_test.go
+++ b/tests/operation_iterator_test.go
@@ -13,9 +13,10 @@ var (
Email: "rene@descartes.fr",
}
- createOp = operations.NewCreateOp(rene, "title", "message")
- setTitleOp = operations.NewSetTitleOp("title2")
- mockRepo = repository.NewMockRepoForTest()
+ createOp = operations.NewCreateOp(rene, "title", "message")
+ setTitleOp = operations.NewSetTitleOp("title2")
+ addCommentOp = operations.NewAddCommentOp(rene, "message2")
+ mockRepo = repository.NewMockRepoForTest()
)
func TestOpIterator(t *testing.T) {
diff --git a/tests/operation_pack_test.go b/tests/operation_pack_test.go
index 8ca43c09..2b19e364 100644
--- a/tests/operation_pack_test.go
+++ b/tests/operation_pack_test.go
@@ -13,6 +13,7 @@ func TestOperationPackSerialize(t *testing.T) {
opp.Append(createOp)
opp.Append(setTitleOp)
+ opp.Append(addCommentOp)
jsonBytes, err := opp.Serialize()