Skip to content

Commit

Permalink
fix ts in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Feb 25, 2021
1 parent fbaa0b9 commit c97a14e
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
* 2.0.
*/

import { createMockLevelLogger } from '../../../test_helpers';
import { JobParamsPanelCsv, SearchPanel } from '../types';
import { getGenerateCsvParams } from './get_csv_job';

const logger = createMockLevelLogger();

describe('Get CSV Job', () => {
let mockJobParams: JobParamsPanelCsv;
let mockSearchPanel: SearchPanel;
Expand Down Expand Up @@ -42,7 +45,8 @@ describe('Get CSV Job', () => {
mockJobParams,
mockSearchPanel,
mockSavedObjectsClient,
mockUiSettingsClient
mockUiSettingsClient,
logger
);
expect(result).toMatchInlineSnapshot(`
Object {
Expand Down Expand Up @@ -94,7 +98,8 @@ describe('Get CSV Job', () => {
mockJobParams,
mockSearchPanel,
mockSavedObjectsClient,
mockUiSettingsClient
mockUiSettingsClient,
logger
);
expect(result).toMatchInlineSnapshot(`
Object {
Expand Down Expand Up @@ -149,7 +154,8 @@ describe('Get CSV Job', () => {
mockJobParams,
mockSearchPanel,
mockSavedObjectsClient,
mockUiSettingsClient
mockUiSettingsClient,
logger
);
expect(result).toMatchInlineSnapshot(`
Object {
Expand Down Expand Up @@ -203,7 +209,8 @@ describe('Get CSV Job', () => {
mockJobParams,
mockSearchPanel,
mockSavedObjectsClient,
mockUiSettingsClient
mockUiSettingsClient,
logger
);
expect(result).toMatchInlineSnapshot(`
Object {
Expand Down Expand Up @@ -275,7 +282,8 @@ describe('Get CSV Job', () => {
mockJobParams,
mockSearchPanel,
mockSavedObjectsClient,
mockUiSettingsClient
mockUiSettingsClient,
logger
);
expect(result).toMatchInlineSnapshot(`
Object {
Expand Down

0 comments on commit c97a14e

Please sign in to comment.