Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Dec 13, 2019
1 parent bc90af3 commit 3f4f329
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legacy/ui/public/saved_objects/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { ChromeStart, OverlayStart, SavedObjectsClientContract } from 'kibana/public';
import { SearchSource, SearchSourceContract } from 'ui/courier';
import { ISearchSource } from 'ui/courier';
import { SavedObjectAttributes, SavedObjectReference } from 'kibana/server';
import { IndexPatternsContract } from '../../../../plugins/data/public';
import { IndexPattern } from '../../../core_plugins/data/public';
Expand All @@ -42,7 +42,7 @@ export interface SavedObject {
lastSavedTitle: string;
migrationVersion?: Record<string, any>;
save: (saveOptions: SavedObjectSaveOpts) => Promise<string>;
searchSource?: SearchSourceContract;
searchSource?: ISearchSource;
showInRecentlyAccessed: boolean;
title: string;
}
Expand Down Expand Up @@ -83,7 +83,7 @@ export interface SavedObjectConfig {
mapping?: any;
migrationVersion?: Record<string, any>;
path?: string;
searchSource?: SearchSource | boolean;
searchSource?: ISearchSource | boolean;
type?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import moment from 'moment';
import { mergeTables } from './merge_tables';
import { KibanaDatatable } from 'src/plugins/expressions/public';

jest.mock('ui/new_platform');

describe('lens_merge_tables', () => {
it('should produce a row with the nested table as defined', () => {
const sampleTable1: KibanaDatatable = {
Expand Down

0 comments on commit 3f4f329

Please sign in to comment.