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:
17
test/unit/browser_builds/generic.js
Normal file
17
test/unit/browser_builds/generic.js
Normal file
@ -0,0 +1,17 @@
|
||||
/* jshint browser:true */
|
||||
var expect = require('expect.js');
|
||||
|
||||
describe('elasticsearch namespace', function () {
|
||||
var es = window.elasticsearch;
|
||||
it('is defined on the window', 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user