add search method to elasticsearch mock
This commit is contained in:
4
test/fixtures/elasticsearch.js
vendored
4
test/fixtures/elasticsearch.js
vendored
@@ -52,6 +52,10 @@ Client.prototype.get = function (params, source) {
|
||||
};
|
||||
};
|
||||
|
||||
Client.prototype.search = function (params) {
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
||||
export default {
|
||||
Client: Client,
|
||||
errors: elasticsearch.errors
|
||||
|
||||
Reference in New Issue
Block a user