Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jan 10, 2022
1 parent f180a6d commit 6cb43df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ describe('IndexPattern Data Source', () => {
});

it('should return mismatched time shifts', () => {
const warnings = indexPatternDatasource.getWarningMessages!(state, framePublicAPI);
const warnings = indexPatternDatasource.getWarningMessages!(state, framePublicAPI, () => {});

expect(warnings!.map((item) => (item as React.ReactElement).props.id)).toMatchInlineSnapshot(`
Array [
Expand All @@ -1460,7 +1460,7 @@ describe('IndexPattern Data Source', () => {
it('should show different types of warning messages', () => {
framePublicAPI.activeData!.first.columns[0].meta.sourceParams!.hasPrecisionError = true;

const warnings = indexPatternDatasource.getWarningMessages!(state, framePublicAPI);
const warnings = indexPatternDatasource.getWarningMessages!(state, framePublicAPI, () => {});

expect(warnings!.map((item) => (item as React.ReactElement).props.id)).toMatchInlineSnapshot(`
Array [
Expand Down

0 comments on commit 6cb43df

Please sign in to comment.