From fd626ca79af456562b82df967eb63c4ae93b7a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Bergenthal-Grotl=C3=BCschen?= Date: Thu, 23 May 2024 12:46:00 +0200 Subject: [PATCH] Fix mock in test --- .../src/components/indices/IndexSetConfigurationForm.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graylog2-web-interface/src/components/indices/IndexSetConfigurationForm.test.tsx b/graylog2-web-interface/src/components/indices/IndexSetConfigurationForm.test.tsx index a2153bbebb99..e775dc09d588 100644 --- a/graylog2-web-interface/src/components/indices/IndexSetConfigurationForm.test.tsx +++ b/graylog2-web-interface/src/components/indices/IndexSetConfigurationForm.test.tsx @@ -16,8 +16,8 @@ */ import * as React from 'react'; import { render, screen } from 'wrappedTestingLibrary'; -import useIndexSetTemplateDefaults from 'src/components/indices/IndexSetTemplates/hooks/useIndexSetTemplateDefaults'; +import useIndexSetTemplateDefaults from 'components/indices/IndexSetTemplates/hooks/useIndexSetTemplateDefaults'; import asMock from 'helpers/mocking/AsMock'; import useProfileOptions from 'components/indices/IndexSetFieldTypeProfiles/hooks/useProfileOptions'; import { DATA_TIERING_TYPE } from 'components/indices/data-tiering'; @@ -242,7 +242,7 @@ const indexSetTemplateDefaults = { }; jest.mock('components/indices/IndexSetFieldTypeProfiles/hooks/useProfileOptions', () => jest.fn()); -jest.mock('components/indices/hooks/useIndexSetTemplateDefaults', () => jest.fn()); +jest.mock('components/indices/IndexSetTemplates/hooks/useIndexSetTemplateDefaults', () => jest.fn()); describe('IndexSetConfigurationForm', () => { beforeEach(() => {