updated tests to be compatible with the limited api version available in the browser_client, and updated grunt-saucelabs

This commit is contained in:
Spencer Alger
2014-07-29 23:04:54 -07:00
parent 017a554683
commit 0e05b0f0a1
4 changed files with 128 additions and 64 deletions

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.0 API when specified', function () {
it('inherits the 1.2 API when specified', function () {
client.close();
client = es.Client({
apiVersion: '1.0'
apiVersion: '1.2'
});
expect(client.bulk).to.be(apis['1.0'].bulk);
expect(client.cluster.nodeStats).to.be(apis['1.0'].cluster.prototype.nodeStats);
expect(client.bulk).to.be(apis['1.2'].bulk);
expect(client.cluster.nodeStats).to.be(apis['1.2'].cluster.prototype.nodeStats);
});
it('closing the client causes it\'s transport to be closed', function () {