test for an api that every version of the client has

This commit is contained in:
Spencer Alger
2015-03-26 14:44:39 -07:00
parent ae69f624a7
commit 3005201732

View File

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