Skip to content

Commit

Permalink
fix mocha test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Feb 5, 2020
1 parent a2bb441 commit 801ccaf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,13 @@ describe('Get Doc Path from ES Response', () => {
_type: '_doc',
_id: 'booId',
};
expect(getUpdatedDocPath(responseMock)).equal('/foo/booId');
expect(getUpdatedDocPath(responseMock)).equal('/foo/_doc/booId');
});
it('returns the same formatted string even if there is no _doc provided', function() {
const responseMock = {
_index: 'foo',
_id: 'booId',
};
expect(getUpdatedDocPath(responseMock)).equal('/foo/_doc/booId');
});
});

0 comments on commit 801ccaf

Please sign in to comment.