Add searching for tasks by index

This commit is contained in:
kolaente 2021-07-11 14:19:48 +02:00
parent 294fc16593
commit 562ef9af36
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 64 additions and 1 deletions

View file

@ -1022,6 +1022,19 @@ func TestTaskCollection_ReadAll(t *testing.T) {
},
wantErr: false,
},
{
name: "search for task index",
fields: fields{},
args: args{
search: "number #17",
a: &user.User{ID: 1},
page: 0,
},
want: []*Task{
task33, // has the index 17
},
wantErr: false,
},
}
for _, tt := range tests {