aboutsummaryrefslogtreecommitdiffstats
path: root/entities/bug/operation_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2024-08-25 20:40:23 +0200
committerGitHub <noreply@github.com>2024-08-25 18:40:23 +0000
commit3a4b8805dfd794cc25f57e99c73ddec651805af1 (patch)
treeb6af67c761c96b323400d061db22ceed73fb0bb0 /entities/bug/operation_test.go
parentc3ff05f95bdfad6c2ea4cb899024fd47ac503b5f (diff)
downloadgit-bug-3a4b8805dfd794cc25f57e99c73ddec651805af1.tar.gz
core: make label a common type, in a similar fashion as for status (#1252)
This will be useful for Board, and likely code review support later
Diffstat (limited to 'entities/bug/operation_test.go')
-rw-r--r--entities/bug/operation_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/entities/bug/operation_test.go b/entities/bug/operation_test.go
index d24faa7a..a6f122b3 100644
--- a/entities/bug/operation_test.go
+++ b/entities/bug/operation_test.go
@@ -32,7 +32,7 @@ func TestValidate(t *testing.T) {
NewSetTitleOp(rene, unix, "title2", "title1"),
NewAddCommentOp(rene, unix, "message2", nil),
NewSetStatusOp(rene, unix, common.ClosedStatus),
- NewLabelChangeOperation(rene, unix, []Label{"added"}, []Label{"removed"}),
+ NewLabelChangeOperation(rene, unix, []common.Label{"added"}, []common.Label{"removed"}),
}
for _, op := range good {
@@ -65,8 +65,8 @@ func TestValidate(t *testing.T) {
NewAddCommentOp(rene, unix, "message", []repository.Hash{repository.Hash("invalid")}),
NewSetStatusOp(rene, unix, 1000),
NewSetStatusOp(rene, unix, 0),
- NewLabelChangeOperation(rene, unix, []Label{}, []Label{}),
- NewLabelChangeOperation(rene, unix, []Label{"multi\nline"}, []Label{}),
+ NewLabelChangeOperation(rene, unix, []common.Label{}, []common.Label{}),
+ NewLabelChangeOperation(rene, unix, []common.Label{"multi\nline"}, []common.Label{}),
}
for i, op := range bad {