Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickseguraoddball committed Dec 6, 2024
1 parent 70cdda4 commit 6ec34e3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { render } from '@testing-library/react';
import { MtoCommonMilestoneKey } from 'gql/generated/graphql';
import { suggestedMilestonesMock } from 'tests/mock/mto';

import MessageProvider from 'contexts/MessageContext';

import { MilestoneCardType } from '../../MilestoneLibrary';

import MilestoneCard from './index';
Expand All @@ -30,7 +32,9 @@ describe('MilestoneCard Component', () => {
]}
>
<Route path="/models/:modelID/collaboration-area/model-to-operations/milestone-library">
<MilestoneCard milestone={mockMilestone} />
<MessageProvider>
<MilestoneCard milestone={mockMilestone} />
</MessageProvider>
</Route>
</MemoryRouter>
</MockedProvider>
Expand Down

0 comments on commit 6ec34e3

Please sign in to comment.