aboutsummaryrefslogblamecommitdiffstats
path: root/entities/bug/op_set_title_test.go
blob: 60157c6cac1e704d91e0b4fbb655facdbed6eb0c (plain) (tree)
1
2
3
4
5
6
7
8


           
                 
 


                                                      


                                          

                                                                                                                                                    
          
 
package bug

import (
	"testing"

	"github.com/git-bug/git-bug/entities/identity"
	"github.com/git-bug/git-bug/entity"
	"github.com/git-bug/git-bug/entity/dag"
)

func TestSetTitleSerialize(t *testing.T) {
	dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*SetTitleOperation, entity.Resolvers) {
		return NewSetTitleOp(author, unixTime, "title", "was"), nil
	})
}