fixed some doc issues, and reorganized the browser tests. Rather than running one per build, now a unit test page is run, and a build test page is run

This commit is contained in:
Spencer Alger
2014-01-15 13:09:46 -07:00
parent 37e35025a0
commit a80e6aba4f
16 changed files with 66 additions and 17071 deletions

18
test/unit/browser_builds/jquery.js vendored Normal file
View File

@ -0,0 +1,18 @@
/* jshint browser:true */
var expect = require('expect.js');
describe('jQuery.es namespace', function () {
var $ = window.jQuery;
it('is defined on the global jQuery', function () {
expect($.es).to.be.ok();
});
it('has Client, ConnectionPool, Transport, and errors keys', function () {
expect($.es).to.have.keys('Client', 'ConnectionPool', 'Transport', 'errors');
});
it('can create a client', function () {
var client = new $.es.Client({ hosts: null });
expect(client).to.have.keys('ping', 'transport', 'indices', 'cluster');
client.close();
});
});