Skip to content

Commit

Permalink
Reduce test output
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesprit committed May 3, 2020
1 parent c8db722 commit 8ddb74b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions test/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,17 +768,15 @@ function testFilter(filter, fields, testData) {
* @param {Array} fn Spy functions should be called
*/
function testMultipleFilters(filter, ...fn) {
for (const field of MetadataFilter.ALL_FIELDS) {
describe(`${field} field`, () => {
it('should call all filter functions', () => {
for (const field of MetadataFilter.ALL_FIELDS) {
filter.filterField(field, 'Test');
}

for (const f of fn) {
it('should call filter function', () => {
expect(f).to.have.been.called();
});
}
});
}
for (const f of fn) {
expect(f).to.have.been.called();
}
});
}

/**
Expand Down

0 comments on commit 8ddb74b

Please sign in to comment.