test for an api that every version of the client has
This commit is contained in:
@ -27,13 +27,13 @@ describe('Client instances creation', function () {
|
|||||||
expect(client.nodes.stats).to.be(apis[def].nodes.prototype.stats);
|
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.close();
|
||||||
client = es.Client({
|
client = es.Client({
|
||||||
apiVersion: '1.2'
|
apiVersion: '1.4'
|
||||||
});
|
});
|
||||||
expect(client.bulk).to.be(apis['1.2'].bulk);
|
expect(client.bulk).to.be(apis['1.4'].bulk);
|
||||||
expect(client.cluster.nodeStats).to.be(apis['1.2'].cluster.prototype.nodeStats);
|
expect(client.cluster.nodeStats).to.be(apis['1.4'].cluster.prototype.nodeStats);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('closing the client causes it\'s transport to be closed', function () {
|
it('closing the client causes it\'s transport to be closed', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user