From 0f155cfec94f347d2d21f5ae2225541eacaf9d8f Mon Sep 17 00:00:00 2001 From: "miriam.aparicio" Date: Thu, 5 Dec 2024 14:40:42 +0000 Subject: [PATCH] fix jest tests --- .../public/alerting/common/components/threshold.test.tsx | 2 +- .../alerting/metric_threshold/components/expression_row.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/observability_solution/infra/public/alerting/common/components/threshold.test.tsx b/x-pack/plugins/observability_solution/infra/public/alerting/common/components/threshold.test.tsx index 12b6e76fe01cc..32d70920c5a73 100644 --- a/x-pack/plugins/observability_solution/infra/public/alerting/common/components/threshold.test.tsx +++ b/x-pack/plugins/observability_solution/infra/public/alerting/common/components/threshold.test.tsx @@ -64,7 +64,7 @@ describe('Threshold', () => { expect((Metric as jest.Mock).mock.calls[0][0].data[0][0]).toMatchInlineSnapshot(` Object { - "color": "#BD271E", + "color": "#f8e9e9", "extra": Alert when >= 7%
diff --git a/x-pack/plugins/observability_solution/infra/public/alerting/metric_threshold/components/expression_row.tsx b/x-pack/plugins/observability_solution/infra/public/alerting/metric_threshold/components/expression_row.tsx index c07f9e54ed039..fc922aa7297ad 100644 --- a/x-pack/plugins/observability_solution/infra/public/alerting/metric_threshold/components/expression_row.tsx +++ b/x-pack/plugins/observability_solution/infra/public/alerting/metric_threshold/components/expression_row.tsx @@ -47,15 +47,15 @@ interface ExpressionRowProps { } const NegativeHorizontalMarginDiv = styled.div` - margin: 0 -${(props) => props.theme.euiTheme.size.xs}; + margin: 0 -4px; `; const StyledExpression = styled.div` - padding: 0 ${(props) => props.theme.euiTheme.size.xs}; + padding: 0 4px; `; const StyledHealth = styled(EuiHealth)` - margin-left: ${(props) => props.theme.euiTheme.size.xs}; + margin-left: 4px; `; export const ExpressionRow = ({