Skip to content

Commit

Permalink
test: add assertion for checking call to mock function
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Dec 4, 2023
1 parent 4f8f9f2 commit 5b39cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/course-outline/CourseOutline.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ describe('<CourseOutline />', () => {

element = await findAllByTestId('section-card');
expect(element.length).toBe(5);
expect(window.HTMLElement.prototype.scrollIntoView).toBeCalled();
});

it('render error alert after failed reindex correctly', async () => {
Expand Down

0 comments on commit 5b39cc3

Please sign in to comment.