Use standard and prettier (#10)
* switch from custom eslint config to standard + prettier * fix new standard eslint violations * add editorconfig file * auto-fix all other violations * update lint yarn script * remove jshint comment
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
var expect = require('expect.js');
|
||||
|
||||
describe('elasticsearch namespace', function () {
|
||||
describe('elasticsearch namespace', function() {
|
||||
var es = window.elasticsearch;
|
||||
it('is defined on the window', function () {
|
||||
it('is defined on the window', function() {
|
||||
expect(es).to.be.ok();
|
||||
});
|
||||
|
||||
it('has Client, ConnectionPool, Transport, and errors keys', function () {
|
||||
it('has Client, ConnectionPool, Transport, and errors keys', function() {
|
||||
expect(es).to.have.keys('Client', 'ConnectionPool', 'Transport', 'errors');
|
||||
});
|
||||
|
||||
it('can create a client', function () {
|
||||
it('can create a client', function() {
|
||||
var client = new es.Client({ hosts: null });
|
||||
expect(client).to.have.keys('transport');
|
||||
expect(client.transport).to.be.a(es.Transport);
|
||||
|
||||
Reference in New Issue
Block a user