expand the es client fixture

This commit is contained in:
2016-04-22 16:49:19 -07:00
parent 0b12fde877
commit 1171c5f0f1

View File

@@ -1,6 +1,13 @@
import { uniqueId } from 'lodash';
function Client() {}
function Client() {
this.indices = {
create: () => Promise.resolve({ acknowledged: true })
};
this.transport = {};
}
Client.prototype.index = function (params) {
var shardCount = 2;
return Promise.resolve({
@@ -13,6 +20,10 @@ Client.prototype.index = function (params) {
});
};
Client.prototype.ping = function () {
return Promise.resolve();
};
export default {
Client: Client
};