Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Oct 6, 2022
1 parent ddb901e commit dd1f00d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ const actWithTimeout = (action: Function, timer: number = 1) =>
}, timer)
)
);

const chartStartContract = chartPluginMock.createStartContract();
const chartsThemeService = chartPluginMock.createSetupContract().theme;
const chartsActiveCursorService = chartStartContract.activeCursor;
const palettesRegistry = chartPluginMock.createPaletteRegistry();
const formatService = fieldFormatsServiceMock.createStartContract();
const args: HeatmapArguments = {
Expand Down Expand Up @@ -114,6 +115,7 @@ describe('HeatmapComponent', function () {
wrapperProps = {
data,
chartsThemeService,
chartsActiveCursorService,
args,
uiState,
onClickValue: jest.fn(),
Expand All @@ -122,6 +124,7 @@ describe('HeatmapComponent', function () {
paletteService: palettesRegistry,
formatFactory: formatService.deserialize,
interactive: true,
syncTooltips: false,
renderComplete: jest.fn(),
};
});
Expand Down

0 comments on commit dd1f00d

Please sign in to comment.