diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/operation_iterator_test.go | 7 | ||||
-rw-r--r-- | tests/operation_pack_test.go | 1 |
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() |