add indices.exists to es client mock

This commit is contained in:
2016-04-22 17:48:35 -07:00
parent 1114bb25b8
commit f120d84367

View File

@@ -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 = {};