Fix filter for task index

This commit is contained in:
kolaente 2021-03-21 18:48:41 +01:00
parent ee436efba3
commit 532855d850
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 24 additions and 10 deletions

View file

@ -985,6 +985,19 @@ func TestTaskCollection_ReadAll(t *testing.T) {
},
wantErr: false,
},
{
name: "filter by index",
fields: fields{
FilterBy: []string{"index"},
FilterValue: []string{"5"},
FilterComparator: []string{"equals"},
},
args: defaultArgs,
want: []*Task{
task5,
},
wantErr: false,
},
}
for _, tt := range tests {