From cb06c8778a4d0a507a34fa75b7bc83fc04eafd6d Mon Sep 17 00:00:00 2001 From: Awais Ansari Date: Wed, 16 Aug 2023 17:42:32 +0500 Subject: [PATCH] fix: notification courses failed test cases --- src/notification-preferences/NotificationCourses.test.jsx | 1 + src/notification-preferences/NotificationPreferences.test.jsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification-preferences/NotificationCourses.test.jsx b/src/notification-preferences/NotificationCourses.test.jsx index 3ad0a3e..7b7848a 100644 --- a/src/notification-preferences/NotificationCourses.test.jsx +++ b/src/notification-preferences/NotificationCourses.test.jsx @@ -64,6 +64,7 @@ describe('Notification Courses', () => { }), })); auth.getAuthenticatedUser = jest.fn(() => ({ userId: 3 })); + window.lightningjs = null; }); afterEach(() => jest.clearAllMocks()); diff --git a/src/notification-preferences/NotificationPreferences.test.jsx b/src/notification-preferences/NotificationPreferences.test.jsx index c358b66..e709c06 100644 --- a/src/notification-preferences/NotificationPreferences.test.jsx +++ b/src/notification-preferences/NotificationPreferences.test.jsx @@ -109,7 +109,6 @@ describe('Notification Preferences', () => { }), })); auth.getAuthenticatedUser = jest.fn(() => ({ userId: 3 })); - window.lightningjs = null; }); afterEach(() => jest.clearAllMocks());