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());