Skip to content

Commit

Permalink
Remove the console log for mock
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Mar 8, 2024
1 parent 85d83bc commit b5d8ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ import { act } from '@testing-library/react';
configure({ adapter: new Adapter() });

jest.mock('../../../../plugin', () => ({
getRenderAccelerationDetailsFlyout: jest.fn(() =>
jest.fn().mockImplementation(() => console.log('Acceleration Details Flyout Rendered'))
),
getRenderAssociatedObjectsDetailsFlyout: jest.fn(() =>
jest.fn().mockImplementation(() => console.log('Associated Objects Details Flyout Rendered'))
),
getRenderAccelerationDetailsFlyout: jest.fn(() => jest.fn()),
getRenderAssociatedObjectsDetailsFlyout: jest.fn(() => jest.fn()),
}));

describe('AssociatedObjectsDetailsFlyout Integration Tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ import {
} from '../manage/associated_objects/utils/associated_objects_tab_utils';

jest.mock('../../../../plugin', () => ({
getRenderAccelerationDetailsFlyout: jest.fn(() =>
jest.fn().mockImplementation(() => console.log('Acceleration Details Flyout Rendered'))
),
getRenderAssociatedObjectsDetailsFlyout: jest.fn(() =>
jest.fn().mockImplementation(() => console.log('Associated Objects Details Flyout Rendered'))
),
getRenderAccelerationDetailsFlyout: jest.fn(() => jest.fn()),
getRenderAssociatedObjectsDetailsFlyout: jest.fn(() => jest.fn()),
}));

describe('AssociatedObjectsTab Component', () => {
Expand Down

0 comments on commit b5d8ecf

Please sign in to comment.