add indices.exists to es client mock
This commit is contained in:
3
test/fixtures/elasticsearch.js
vendored
3
test/fixtures/elasticsearch.js
vendored
@@ -2,7 +2,8 @@ import { uniqueId } from 'lodash';
|
||||
|
||||
function Client() {
|
||||
this.indices = {
|
||||
create: () => Promise.resolve({ acknowledged: true })
|
||||
create: () => Promise.resolve({ acknowledged: true }),
|
||||
exists: () => Promise.resolve(false),
|
||||
};
|
||||
|
||||
this.transport = {};
|
||||
|
||||
Reference in New Issue
Block a user