Use excludes instead of exclude in ES _source query
As of ES 5.0, you must use the plural name.
This commit is contained in:
@@ -278,7 +278,7 @@ describe('Worker class', function () {
|
||||
const excludedFields = [ 'output.content' ];
|
||||
const { body } = getSearchParams(jobtype);
|
||||
expect(body).to.have.property('_source');
|
||||
expect(body._source).to.eql({ exclude: excludedFields });
|
||||
expect(body._source).to.eql({ excludes: excludedFields });
|
||||
});
|
||||
|
||||
it('should search by job type', function () {
|
||||
|
||||
Reference in New Issue
Block a user