({
}));
jest.mock('./table', () => ({
- ApisUpdateTable: jest
- .fn()
- .mockReturnValue(
APIs Updates Table component
),
+ ApisUpdateTable: jest.fn().mockReturnValue(
APIs Updates Table component
),
}));
-jest.mock('../../../../plugin-services', () => ({
- getWazuhCore: jest
- .fn()
- .mockReturnValue({
- utils: {
- formatUIDate: jest.fn().mockReturnValue('2023-09-18T14:00:00.000Z'),
- },
- }),
+jest.mock('../../plugin-services', () => ({
+ getWazuhCore: jest.fn().mockReturnValue({
+ utils: {
+ formatUIDate: jest.fn().mockReturnValue('2023-09-18T14:00:00.000Z'),
+ },
+ }),
}));
const mockedUseAvailabeUpdates = useAvailableUpdates as jest.Mock;
@@ -59,14 +55,12 @@ describe('UpdatesNotification component', () => {
}));
const { container, getByText } = render(
-
{}} />,
+ {}} />
);
expect(container).toMatchSnapshot();
- const dismissNotificationCheck = getByText(
- 'Dismiss Notification Check component',
- );
+ const dismissNotificationCheck = getByText('Dismiss Notification Check component');
expect(dismissNotificationCheck).toBeInTheDocument();
const apisUpdateTable = getByText('APIs Updates Table component');
@@ -103,7 +97,7 @@ describe('UpdatesNotification component', () => {
}));
const { container, getByRole, getByText } = render(
- {}} />,
+ {}} />
);
expect(container).toMatchSnapshot();
diff --git a/plugins/wazuh-check-updates/public/components/apis-update-status/index.tsx b/plugins/wazuh-check-updates/public/components/apis-update-status/index.tsx
index 8078113c3a..8234c4a478 100644
--- a/plugins/wazuh-check-updates/public/components/apis-update-status/index.tsx
+++ b/plugins/wazuh-check-updates/public/components/apis-update-status/index.tsx
@@ -96,7 +96,7 @@ export const ApisUpdateStatus = ({
diff --git a/plugins/wazuh-check-updates/public/components/apis-update-status/table/__snapshots__/index.test.tsx.snap b/plugins/wazuh-check-updates/public/components/apis-update-status/table/__snapshots__/index.test.tsx.snap
index e1e2536f44..bdb3672b44 100644
--- a/plugins/wazuh-check-updates/public/components/apis-update-status/table/__snapshots__/index.test.tsx.snap
+++ b/plugins/wazuh-check-updates/public/components/apis-update-status/table/__snapshots__/index.test.tsx.snap
@@ -35,7 +35,6 @@ exports[`ApisUpdateTable component should return the ApisUpdateTable component 1
data-test-subj="tableHeaderCell_api_id_0"
role="columnheader"
scope="col"
- style="width: 100px;"
>
-
-
-
@@ -146,7 +89,6 @@ exports[`ApisUpdateTable component should return the ApisUpdateTable component 1
>
|