From 37bae58bc396385790fcc1e1ad5f76fc579e76b5 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 35e09ed99f..b6fa767c05 100644 --- a/src/course-outline/CourseOutline.test.jsx +++ b/src/course-outline/CourseOutline.test.jsx @@ -133,6 +133,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 () => {