Skip to content

Commit

Permalink
fixed the mock for tabs config
Browse files Browse the repository at this point in the history
  • Loading branch information
Assem-Hafez committed May 17, 2024
1 parent 789e5fa commit 70ea846
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ import WorkflowPageTabs from '../workflow-page-tabs';
import type { Props } from '../workflow-page-tabs.types';
import workflowPageTabsConfig from '../../config/workflow-page-tabs.config';

jest.mock('../../config/workflow-page-tabs.config', () => ({
workflowPageTabsConfig: [
{
key: 'summary',
title: 'Summary',
artwork: () => <div data-testid="summary-artwork" />,
},
{
key: 'page-2',
title: 'Page 2',
},
],
}));
jest.mock('../../config/workflow-page-tabs.config', () => ([
{
key: 'summary',
title: 'Summary',
artwork: () => <div data-testid="summary-artwork" />,
},
{
key: 'page-2',
title: 'Page 2',
},
]
));

describe('WorkflowPageTabs', () => {
afterEach(() => {
Expand Down

0 comments on commit 70ea846

Please sign in to comment.