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 = [
{ name: 'foo', f: 'include' }
];
const filtered = [ { name: 'foo', f: 'include' } ];
const filter = {
fields: ['name', 'f'],
fields: [
'name',
'f'
],
filter: /foo include/ui
};
const result = util.recursive_filter (raw, [ filter ]);