allow id to be passed to mock elasticsearch index
This commit is contained in:
2
test/fixtures/elasticsearch.js
vendored
2
test/fixtures/elasticsearch.js
vendored
@@ -15,7 +15,7 @@ Client.prototype.index = function (params) {
|
||||
return Promise.resolve({
|
||||
_index: params.index || 'index',
|
||||
_type: params.type || 'type',
|
||||
_id: uniqueId('testDoc'),
|
||||
_id: params.id || uniqueId('testDoc'),
|
||||
_version: 1,
|
||||
_shards: { total: shardCount, successful: shardCount, failed: 0 },
|
||||
created: true
|
||||
|
||||
Reference in New Issue
Block a user