From e1b172aaf0e984791b5af4a64b144339fd4042f6 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 24 Aug 2022 21:29:17 +0200 Subject: dag: test op serialisation with the unmarshaller, to allow resolving entities --- entities/bug/op_set_title_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'entities/bug/op_set_title_test.go') diff --git a/entities/bug/op_set_title_test.go b/entities/bug/op_set_title_test.go index 7960ec4f..82425ab4 100644 --- a/entities/bug/op_set_title_test.go +++ b/entities/bug/op_set_title_test.go @@ -4,11 +4,12 @@ import ( "testing" "github.com/MichaelMure/git-bug/entities/identity" + "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/entity/dag" ) func TestSetTitleSerialize(t *testing.T) { - dag.SerializeRoundTripTest(t, func(author identity.Interface, unixTime int64) *SetTitleOperation { - return NewSetTitleOp(author, unixTime, "title", "was") + dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*SetTitleOperation, entity.Resolvers) { + return NewSetTitleOp(author, unixTime, "title", "was"), nil }) } -- cgit