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 () {