Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed Tabraiz committed Jan 31, 2025
1 parent 562ada1 commit a083939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import userEvent from '@testing-library/user-event';
import '@testing-library/jest-dom';
import ServerLogs from './ServerLogsTab';
import { mocked } from 'jest-mock';
import useLoadData from '../../../utils/hooks/useLoadData';
import useLoadData from '../../../utils/hooks/useLoadData/useLoadData';

const mockData = jest.fn().mockReturnValue({
logs: ['Log entry 1', 'Log entry 2'],
Expand All @@ -32,7 +32,7 @@ const emptyMockData = jest.fn().mockReturnValue({
hue_hostname: 'test-hostname'
});

jest.mock('../../../utils/hooks/useLoadData');
jest.mock('../../../utils/hooks/useLoadData/useLoadData');

afterEach(() => {
jest.clearAllMocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import React, { useState } from 'react';
import { Spin, Alert } from 'antd';
import ServerLogsHeader from './ServerLogsHeader';
import { i18nReact } from '../../../utils/i18nReact';
import useLoadData from '../../../utils/hooks/useLoadData';
import useLoadData from '../../../utils/hooks/useLoadData/useLoadData';
import HighlightText from '../Components/HighlightText';
import { SERVER_LOGS_API_URL } from '../Components/utils';
import './ServerLogsTab.scss';
Expand Down

0 comments on commit a083939

Please sign in to comment.