version 2.1.0

This commit is contained in:
Spencer Alger
2014-03-27 13:52:29 -07:00
parent a152e7edcc
commit 04fb8c6443
8 changed files with 15 additions and 11 deletions

View File

@ -21,9 +21,10 @@ describe('Client instances creation', function () {
}).to.throwError(/previous "elasticsearch" module/);
});
it('inherits the 1.0 API by default', function () {
expect(client.bulk).to.eql(apis['1.0'].bulk);
expect(client.nodes.stats).to.eql(apis['1.0'].nodes.prototype.stats);
var def = require('../../../package.json').config.default_api_branch;
it('inherits the ' + def + ' API by default', function () {
expect(client.bulk).to.eql(apis[def].bulk);
expect(client.nodes.stats).to.eql(apis[def].nodes.prototype.stats);
});
it('inherits the 0.90 API when specified', function () {