Skip to content

Commit 2f1c77b

Browse files
committed
Fix the test following removing Vega
1 parent a24b0b1 commit 2f1c77b

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

ui/src/components/__TEST__/util.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MetricsTimeSpanProvider } from '@scality/core-ui/dist/components/linetemporalchart/MetricTimespanProvider';
1+
import { MetricsTimeSpanProvider } from '@scality/core-ui/dist/next';
22
import {
33
render,
44
screen,

ui/src/hooks/useChartLegendRegistration.spec.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import { useChartLegendRegistration } from './useChartLegendRegistration';
22
import { renderHook } from '@testing-library/react-hooks';
3-
import { Serie } from '@scality/core-ui/dist/components/linetimeseriechart/linetimeseriechart.component';
3+
import { Serie } from '@scality/core-ui/dist/next';
44

55
// Mock the useChartLegend hook
66
const mockRegister = jest.fn();
7-
jest.mock(
8-
'@scality/core-ui/dist/components/chartlegend/ChartLegendWrapper',
9-
() => ({
10-
useChartLegend: () => ({
11-
register: mockRegister,
12-
}),
7+
jest.mock('@scality/core-ui/dist/next', () => ({
8+
useChartLegend: () => ({
9+
register: mockRegister,
1310
}),
14-
);
11+
}));
1512

1613
describe('useChartLegendRegistration', () => {
1714
beforeEach(() => {

0 commit comments

Comments
 (0)