fix: update snapshot mocking

This commit is contained in:
Ben Warzeski
2021-10-26 15:34:49 -04:00
parent 955fea510e
commit fcdbc5034e
2 changed files with 6 additions and 2 deletions

View File

@@ -18,6 +18,10 @@ jest.mock('@edx/paragon', () => ({
Hyperlink: () => 'Hyperlink',
Icon: () => 'Icon',
}));
jest.mock('@edx/paragon/icons', () => ({
ArrowBack: 'icons.ArrowBack',
Launch: 'icons.Launch',
}));
jest.mock('data/selectors', () => ({
__esModule: true,

View File

@@ -6,7 +6,7 @@ exports[`ListViewBreadcrumb component component snapshot: empty (no list data) 1
className="py-4"
destination="openResponseUrl(test-course-id)"
>
<SvgArrowBack
<icons.ArrowBack
className="mr-3"
/>
Back to all open responses
@@ -20,7 +20,7 @@ exports[`ListViewBreadcrumb component component snapshot: empty (no list data) 1
target="_blank"
>
<Icon
icon={[Function]}
icon="icons.Launch"
/>
</Hyperlink>
</p>