From 67381108d73d41d143413eb4beebbee0cd7a57b4 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 19 Jul 2016 12:51:34 -0700 Subject: [PATCH] add indices.refresh method to mock client --- test/fixtures/elasticsearch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fixtures/elasticsearch.js b/test/fixtures/elasticsearch.js index 1fe7e9f..60892a7 100644 --- a/test/fixtures/elasticsearch.js +++ b/test/fixtures/elasticsearch.js @@ -6,6 +6,7 @@ function Client() { this.indices = { create: () => Promise.resolve({ acknowledged: true }), exists: () => Promise.resolve(false), + refresh: () => Promise.resolve(), }; this.transport = {};