add mock client to worker tests

This commit is contained in:
2016-04-25 16:32:58 -07:00
parent b0f2264ab8
commit 482ea68692

View File

@@ -1,12 +1,18 @@
import expect from 'expect.js'; import expect from 'expect.js';
import { noop } from 'lodash'; import { noop } from 'lodash';
import Worker from '../../lib/worker'; import Worker from '../../lib/worker';
import elasticsearchMock from '../fixtures/elasticsearch';
describe('Worker class', function () { describe('Worker class', function () {
let client;
let mockQueue; let mockQueue;
beforeEach(function () { beforeEach(function () {
mockQueue = {}; client = new elasticsearchMock.Client();
mockQueue = {
client: client
};
}); });
describe('invalid construction', function () { describe('invalid construction', function () {