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 7, 2023
1 parent c07ce79 commit 97ae77e
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 97ae77e

Please sign in to comment.