From 97ae77efe047ef15970cb6a42f520fe917a19db3 Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Date: Mon, 4 Dec 2023 10:38:42 -0500 Subject: [PATCH] test: add assertion for checking call to mock function --- src/course-outline/CourseOutline.test.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/course-outline/CourseOutline.test.jsx b/src/course-outline/CourseOutline.test.jsx index 3aca2e8654..b68c3c715b 100644 --- a/src/course-outline/CourseOutline.test.jsx +++ b/src/course-outline/CourseOutline.test.jsx @@ -132,6 +132,7 @@ describe('', () => { 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 () => {