1
0

Fix filter for task index

This commit is contained in:
kolaente
2021-03-21 18:48:41 +01:00
parent ee436efba3
commit 532855d850
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 {