From 2afae706f07498ef97a9f3829dadf18e25f47977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Tue, 18 Mar 2025 13:03:01 +0100 Subject: [PATCH] Chore: fix transformSceneToSaveModel test --- .../serialization/transformSceneToSaveModel.test.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/public/app/features/dashboard-scene/serialization/transformSceneToSaveModel.test.ts b/public/app/features/dashboard-scene/serialization/transformSceneToSaveModel.test.ts index 9d6061e3c6f..82d9aaae658 100644 --- a/public/app/features/dashboard-scene/serialization/transformSceneToSaveModel.test.ts +++ b/public/app/features/dashboard-scene/serialization/transformSceneToSaveModel.test.ts @@ -14,7 +14,7 @@ import { VariableSupportType, } from '@grafana/data'; import { getPanelPlugin } from '@grafana/data/test/__mocks__/pluginMocks'; -import { getPluginLinkExtensions, setPluginImportUtils } from '@grafana/runtime'; +import { setPluginImportUtils } from '@grafana/runtime'; import { MultiValueVariable, sceneGraph, SceneGridRow, VizPanel } from '@grafana/scenes'; import { Dashboard, LoadingState, Panel, RowPanel, VariableRefresh } from '@grafana/schema'; import { PanelModel } from 'app/features/dashboard/state/PanelModel'; @@ -154,8 +154,6 @@ jest.mock('@grafana/data', () => ({ setWeekStart: jest.fn(), })); -const getPluginLinkExtensionsMock = jest.mocked(getPluginLinkExtensions); - jest.mock('@grafana/scenes', () => ({ ...jest.requireActual('@grafana/scenes'), sceneUtils: { @@ -165,11 +163,6 @@ jest.mock('@grafana/scenes', () => ({ })); describe('transformSceneToSaveModel', () => { - beforeEach(() => { - getPluginLinkExtensionsMock.mockRestore(); - getPluginLinkExtensionsMock.mockReturnValue({ extensions: [] }); - }); - describe('Given a simple scene with custom settings', () => { it('Should transform back to persisted model', () => { const dashboardWithCustomSettings = {