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

import (
	"testing"

	"github.com/git-bug/git-bug/entities/common"
	"github.com/git-bug/git-bug/entities/identity"
	"github.com/git-bug/git-bug/entity"
	"github.com/git-bug/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
	})
}