Skip to content

Commit

Permalink
Fix test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed Jan 15, 2020
1 parent 0e5ef28 commit b79d2e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('index_patterns/field_capabilities/field_caps_response', () => {
sandbox.spy(shouldReadFieldFromDocValuesNS, 'shouldReadFieldFromDocValues');
const fields = readFieldCapsResponse(esResponse);
const conflictCount = fields.filter(f => f.type === 'conflict').length;
// +2 is for the object field which is filtered out of the final return value from readFieldCapsResponse
// +1 is for the object field which is filtered out of the final return value from readFieldCapsResponse
sinon.assert.callCount(shouldReadFieldFromDocValues, fields.length - conflictCount + 1);
});

Expand Down

0 comments on commit b79d2e2

Please sign in to comment.