mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
fix locally broken unit tests (#149811)
## Summary Due to an old Pull request, 2 of the Unit Tests started to fail locally. Somehow they won't fail on the CI which made them tough to identify initially. This PR fixes those broken unit tests.
This commit is contained in:
parent
61992632ec
commit
214eb97949
1 changed files with 5 additions and 4 deletions
|
@ -77,8 +77,9 @@ export function TimeseriesChartWithContext({
|
|||
const annotationColor = theme.eui.euiColorSuccess;
|
||||
const { annotations } = useAnnotationsContext();
|
||||
|
||||
const getAnnotations = () => (
|
||||
const timeseriesAnnotations = [
|
||||
<LineAnnotation
|
||||
key="annotations"
|
||||
id="annotations"
|
||||
domainType={AnnotationDomainType.XDomain}
|
||||
dataValues={annotations.map((annotation) => ({
|
||||
|
@ -93,8 +94,8 @@ export function TimeseriesChartWithContext({
|
|||
}}
|
||||
marker={<EuiIcon type="dot" color={annotationColor} />}
|
||||
markerPosition={Position.Top}
|
||||
/>
|
||||
);
|
||||
/>,
|
||||
];
|
||||
return (
|
||||
<TimeseriesChart
|
||||
id={id}
|
||||
|
@ -105,7 +106,7 @@ export function TimeseriesChartWithContext({
|
|||
yLabelFormat={yLabelFormat}
|
||||
yTickFormat={yTickFormat}
|
||||
showAnnotations={showAnnotations}
|
||||
annotations={[getAnnotations()]}
|
||||
annotations={timeseriesAnnotations}
|
||||
yDomain={yDomain}
|
||||
anomalyTimeseries={anomalyTimeseries}
|
||||
customTheme={customTheme}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue