Skip to content

Commit

Permalink
Fix type error in lens.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Nov 6, 2020
1 parent 2a0d358 commit 429f498
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@

import moment from 'moment';
import { mergeTables } from './merge_tables';
import { ExpressionValueSearchContext } from 'src/plugins/data/public';
import { Datatable, ExecutionContext } from 'src/plugins/expressions';
import { LensInspectorAdapters } from './types';

@@ -52,7 +53,7 @@ describe('lens_merge_tables', () => {
const adapters: LensInspectorAdapters = { tables: {} };
mergeTables.fn(null, { layerIds: ['first', 'second'], tables: [sampleTable1, sampleTable2] }, {
inspectorAdapters: adapters,
} as ExecutionContext<LensInspectorAdapters>);
} as ExecutionContext<LensInspectorAdapters, ExpressionValueSearchContext>);
expect(adapters.tables!.first).toBe(sampleTable1);
expect(adapters.tables!.second).toBe(sampleTable2);
});

0 comments on commit 429f498

Please sign in to comment.