add indices.refresh method to mock client
This commit is contained in:
1
test/fixtures/elasticsearch.js
vendored
1
test/fixtures/elasticsearch.js
vendored
@@ -6,6 +6,7 @@ function Client() {
|
|||||||
this.indices = {
|
this.indices = {
|
||||||
create: () => Promise.resolve({ acknowledged: true }),
|
create: () => Promise.resolve({ acknowledged: true }),
|
||||||
exists: () => Promise.resolve(false),
|
exists: () => Promise.resolve(false),
|
||||||
|
refresh: () => Promise.resolve(),
|
||||||
};
|
};
|
||||||
|
|
||||||
this.transport = {};
|
this.transport = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user