clean up mock includes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import expect from 'expect.js';
|
import expect from 'expect.js';
|
||||||
import proxyquire from 'proxyquire';
|
import proxyquire from 'proxyquire';
|
||||||
import * as elasticsearchMock from '../../fixtures/elasticsearch';
|
import elasticsearchMock from '../../fixtures/elasticsearch';
|
||||||
|
|
||||||
const module = proxyquire.noPreserveCache()('../../../lib/helpers/es_client', {
|
const module = proxyquire.noPreserveCache()('../../../lib/helpers/es_client', {
|
||||||
elasticsearch: elasticsearchMock
|
elasticsearch: elasticsearchMock
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import events from 'events';
|
import events from 'events';
|
||||||
import expect from 'expect.js';
|
import expect from 'expect.js';
|
||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
import * as elasticsearchMock from '../fixtures/elasticsearch';
|
import elasticsearchMock from '../fixtures/elasticsearch';
|
||||||
import Elastique from '../../lib/index';
|
import Elastique from '../../lib/index';
|
||||||
|
|
||||||
describe('Elastique class', function () {
|
describe('Elastique class', function () {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import expect from 'expect.js';
|
|||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import Job from '../../lib/job';
|
import Job from '../../lib/job';
|
||||||
import * as elasticsearchMock from '../fixtures/elasticsearch';
|
import elasticsearchMock from '../fixtures/elasticsearch';
|
||||||
import { JOB_STATUS_PENDING } from '../../lib/helpers/constants';
|
import { JOB_STATUS_PENDING } from '../../lib/helpers/constants';
|
||||||
|
|
||||||
describe('Job Class', function () {
|
describe('Job Class', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user