aboutsummaryrefslogtreecommitdiffstats
path: root/entities/bug/op_set_status_test.go
blob: 0f6d358a19571923321bb7d7e3f7d33fbbaded01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package bug

import (
	"testing"

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

func TestSetStatusSerialize(t *testing.T) {
	dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*SetStatusOperation, entity.Resolvers) {
		return NewSetStatusOp(author, unixTime, common.ClosedStatus), nil
	})
}