Skip to content

Commit

Permalink
plugin.test.ts cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Feb 10, 2020
1 parent 43950d4 commit a14f95a
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions x-pack/plugins/actions/server/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { coreMock, httpServerMock } from '../../../../src/core/server/mocks';
import { licensingMock } from '../../licensing/server/mocks';
import { encryptedSavedObjectsMock } from '../../encrypted_saved_objects/server/mocks';
import { taskManagerMock } from '../../task_manager/server/mocks';
import { eventLogMock } from '../../event_log/server/mocks';

describe('Actions Plugin', () => {
describe('setup()', () => {
Expand All @@ -24,16 +25,7 @@ describe('Actions Plugin', () => {
taskManager: taskManagerMock.createSetup(),
encryptedSavedObjects: encryptedSavedObjectsMock.createSetup(),
licensing: licensingMock.createSetup(),
// TODO: Pull event log mock once https://github.com/elastic/kibana/pull/57048 merged
event_log: {
isEnabled: jest.fn(),
isLoggingEntries: jest.fn(),
isIndexingEntries: jest.fn(),
registerProviderActions: jest.fn(),
isProviderActionRegistered: jest.fn(),
getProviderActions: jest.fn(),
getLogger: jest.fn(),
},
event_log: eventLogMock.createSetup(),
};
});

Expand Down Expand Up @@ -105,16 +97,7 @@ describe('Actions Plugin', () => {
taskManager: taskManagerMock.createSetup(),
encryptedSavedObjects: encryptedSavedObjectsMock.createSetup(),
licensing: licensingMock.createSetup(),
// TODO: Pull event log mock once https://github.com/elastic/kibana/pull/57048 merged
event_log: {
isEnabled: jest.fn(),
isLoggingEntries: jest.fn(),
isIndexingEntries: jest.fn(),
registerProviderActions: jest.fn(),
isProviderActionRegistered: jest.fn(),
getProviderActions: jest.fn(),
getLogger: jest.fn(),
},
event_log: eventLogMock.createSetup(),
};
pluginsStart = {
taskManager: taskManagerMock.createStart(),
Expand Down

0 comments on commit a14f95a

Please sign in to comment.