Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx committed Jul 6, 2023
1 parent 1fdf9cf commit 17c6bbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

exports[`CourseCardMenu default snapshot 1`] = `
<Fragment>
<Dropdown>
<Dropdown
onToggle={[MockFunction mockHandleToggleDropdown]}
>
<Dropdown.Toggle
alt="Course actions dropdown"
as="IconButton"
Expand Down Expand Up @@ -61,7 +63,9 @@ exports[`CourseCardMenu default snapshot 1`] = `

exports[`CourseCardMenu masquerading snapshot 1`] = `
<Fragment>
<Dropdown>
<Dropdown
onToggle={[MockFunction mockHandleToggleDropdown]}
>
<Dropdown.Toggle
alt="Course actions dropdown"
as="IconButton"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jest.mock('./hooks', () => ({
useEmailSettings: jest.fn(),
useUnenrollData: jest.fn(),
useCourseCardMenu: jest.fn(),
useHandleToggleDropdown: () => jest.fn().mockName('mockHandleToggleDropdown'),
}));

const props = {
Expand Down

0 comments on commit 17c6bbc

Please sign in to comment.