1
0

Add searching for tasks by index

This commit is contained in:
kolaente
2021-07-11 14:19:48 +02:00
parent 294fc16593
commit 562ef9af36
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 {