From 300520173298c9dfabd1c5922b97f788b6d7b6eb Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Thu, 26 Mar 2015 14:44:39 -0700 Subject: [PATCH] test for an api that every version of the client has --- test/unit/specs/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/specs/client.js b/test/unit/specs/client.js index d208532b2..6602d8025 100644 --- a/test/unit/specs/client.js +++ b/test/unit/specs/client.js @@ -27,13 +27,13 @@ describe('Client instances creation', function () { expect(client.nodes.stats).to.be(apis[def].nodes.prototype.stats); }); - it('inherits the 1.2 API when specified', function () { + it('inherits the 1.4 API when specified', function () { client.close(); client = es.Client({ - apiVersion: '1.2' + apiVersion: '1.4' }); - expect(client.bulk).to.be(apis['1.2'].bulk); - expect(client.cluster.nodeStats).to.be(apis['1.2'].cluster.prototype.nodeStats); + expect(client.bulk).to.be(apis['1.4'].bulk); + expect(client.cluster.nodeStats).to.be(apis['1.4'].cluster.prototype.nodeStats); }); it('closing the client causes it\'s transport to be closed', function () {