From 23f97697a32d33cae1645a35ae17be612a81a9d9 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Fri, 11 Apr 2025 14:43:11 +0100 Subject: [PATCH] Alerting: Remove comment references to angular in tests (#103878) --- .../unified/rule-editor/RuleEditorCloudOnlyAllowed.test.tsx | 2 -- .../unified/rule-editor/RuleEditorRecordingRule.test.tsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/public/app/features/alerting/unified/rule-editor/RuleEditorCloudOnlyAllowed.test.tsx b/public/app/features/alerting/unified/rule-editor/RuleEditorCloudOnlyAllowed.test.tsx index 3671d13d232..059743c99a3 100644 --- a/public/app/features/alerting/unified/rule-editor/RuleEditorCloudOnlyAllowed.test.tsx +++ b/public/app/features/alerting/unified/rule-editor/RuleEditorCloudOnlyAllowed.test.tsx @@ -29,8 +29,6 @@ jest.mock('../api/ruler', () => ({ fetchRulerRulesNamespace: jest.fn(), })); -// there's no angular scope in test and things go terribly wrong when trying to render the query editor row. -// lets just skip it jest.mock('app/features/query/components/QueryEditorRow', () => ({ // eslint-disable-next-line react/display-name QueryEditorRow: () =>

hi

, diff --git a/public/app/features/alerting/unified/rule-editor/RuleEditorRecordingRule.test.tsx b/public/app/features/alerting/unified/rule-editor/RuleEditorRecordingRule.test.tsx index 8e979828aa9..29c1f926dbe 100644 --- a/public/app/features/alerting/unified/rule-editor/RuleEditorRecordingRule.test.tsx +++ b/public/app/features/alerting/unified/rule-editor/RuleEditorRecordingRule.test.tsx @@ -39,8 +39,6 @@ jest.mock('app/core/components/AppChrome/AppChromeUpdate', () => ({ AppChromeUpdate: ({ actions }: { actions: React.ReactNode }) =>
{actions}
, })); -// there's no angular scope in test and things go terribly wrong when trying to render the query editor row. -// lets just skip it jest.mock('app/features/query/components/QueryEditorRow', () => ({ // eslint-disable-next-line react/display-name QueryEditorRow: () =>

hi

,