From f120d843675ba88d1e448005b5704fdf5dda0a73 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Fri, 22 Apr 2016 17:48:35 -0700 Subject: [PATCH] add indices.exists to es client mock --- test/fixtures/elasticsearch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/fixtures/elasticsearch.js b/test/fixtures/elasticsearch.js index 798f468..1fab5bf 100644 --- a/test/fixtures/elasticsearch.js +++ b/test/fixtures/elasticsearch.js @@ -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 = {};