This commit is contained in:
Timo Hocker 2020-06-26 16:12:16 +02:00
parent 9f41d623e4
commit af709965c5

View File

@ -173,11 +173,12 @@ test ('recursive filter multifield', (t) => {
] ]
} }
]; ];
const filtered = [ const filtered = [ { name: 'foo', f: 'include' } ];
{ name: 'foo', f: 'include' }
];
const filter = { const filter = {
fields: ['name', 'f'], fields: [
'name',
'f'
],
filter: /foo include/ui filter: /foo include/ui
}; };
const result = util.recursive_filter (raw, [ filter ]); const result = util.recursive_filter (raw, [ filter ]);