diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-20 11:01:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 11:01:37 +0200 |
commit | 855684149740e2fb8eec21f3d97df2eba39b27c5 (patch) | |
tree | a3bd60a9f533fc6fc11a094038d095510210cd23 /entities/bug/operation_test.go | |
parent | 58df94d38d754bff4dcca11e2ae4b99326a9a87e (diff) | |
parent | 8818d091e85087766d7f493b7dfaf1aedc3a4ab0 (diff) | |
download | git-bug-855684149740e2fb8eec21f3d97df2eba39b27c5.tar.gz git-bug-855684149740e2fb8eec21f3d97df2eba39b27c5.zip |
Merge pull request #856 from MichaelMure/common-status
move bug.Status in entities/common for reuse
Diffstat (limited to 'entities/bug/operation_test.go')
-rw-r--r-- | entities/bug/operation_test.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/entities/bug/operation_test.go b/entities/bug/operation_test.go index fe8080c3..4bec49ae 100644 --- a/entities/bug/operation_test.go +++ b/entities/bug/operation_test.go @@ -6,6 +6,7 @@ import ( "github.com/stretchr/testify/require" + "github.com/MichaelMure/git-bug/entities/common" "github.com/MichaelMure/git-bug/entities/identity" "github.com/MichaelMure/git-bug/entity/dag" "github.com/MichaelMure/git-bug/repository" @@ -30,7 +31,7 @@ func TestValidate(t *testing.T) { NewCreateOp(rene, unix, "title", "message", nil), NewSetTitleOp(rene, unix, "title2", "title1"), NewAddCommentOp(rene, unix, "message2", nil), - NewSetStatusOp(rene, unix, ClosedStatus), + NewSetStatusOp(rene, unix, common.ClosedStatus), NewLabelChangeOperation(rene, unix, []Label{"added"}, []Label{"removed"}), } @@ -42,11 +43,11 @@ func TestValidate(t *testing.T) { bad := []Operation{ // opbase - NewSetStatusOp(makeIdentity(t, "", "rene@descartes.fr"), unix, ClosedStatus), - NewSetStatusOp(makeIdentity(t, "René Descartes\u001b", "rene@descartes.fr"), unix, ClosedStatus), - NewSetStatusOp(makeIdentity(t, "René Descartes", "rene@descartes.fr\u001b"), unix, ClosedStatus), - NewSetStatusOp(makeIdentity(t, "René \nDescartes", "rene@descartes.fr"), unix, ClosedStatus), - NewSetStatusOp(makeIdentity(t, "René Descartes", "rene@\ndescartes.fr"), unix, ClosedStatus), + NewSetStatusOp(makeIdentity(t, "", "rene@descartes.fr"), unix, common.ClosedStatus), + NewSetStatusOp(makeIdentity(t, "René Descartes\u001b", "rene@descartes.fr"), unix, common.ClosedStatus), + NewSetStatusOp(makeIdentity(t, "René Descartes", "rene@descartes.fr\u001b"), unix, common.ClosedStatus), + NewSetStatusOp(makeIdentity(t, "René \nDescartes", "rene@descartes.fr"), unix, common.ClosedStatus), + NewSetStatusOp(makeIdentity(t, "René Descartes", "rene@\ndescartes.fr"), unix, common.ClosedStatus), &CreateOperation{OpBase: dag.NewOpBase(CreateOp, rene, 0), Title: "title", Message: "message", |