@@ -7,7 +7,7 @@ import { initializeMockApp } from '@edx/frontend-platform/testing';
77import { initializeStore } from '../../store' ;
88import executeThunk from '../../test-utils' ;
99import {
10- getNotificationsApiUrl , getNotificationsCountApiUrl , markAllNotificationsAsReadpiUrl , markNotificationsSeenApiUrl ,
10+ getNotificationsApiUrl , getNotificationsCountApiUrl , markNotificationAsReadApiUrl , markNotificationsSeenApiUrl ,
1111} from './api' ;
1212import {
1313 fetchAppsNotificationCount , fetchNotificationList , markNotificationsAsRead , markAllNotificationsAsRead ,
@@ -18,7 +18,7 @@ import './__factories__';
1818
1919const notificationCountsApiUrl = getNotificationsCountApiUrl ( ) ;
2020const notificationsApiUrl = getNotificationsApiUrl ( ) ;
21- const markedAllNotificationsAsReadApiUrl = markAllNotificationsAsReadpiUrl ( ) ;
21+ const markedAllNotificationsAsReadApiUrl = markNotificationAsReadApiUrl ( ) ;
2222const markedAllNotificationsAsSeenApiUrl = markNotificationsSeenApiUrl ( 'discussions' ) ;
2323
2424let axiosMock ;
@@ -139,18 +139,6 @@ describe('Notification Redux', () => {
139139 expect ( firstNotification . lastRead ) . not . toBeNull ( ) ;
140140 } ) ;
141141
142- it . each ( [
143- { statusCode : 404 , status : 'failed' } ,
144- { statusCode : 403 , status : 'denied' } ,
145- ] ) ( '%s to mark all notifications as read for selected app in the redux.' , async ( { statusCode, status } ) => {
146- axiosMock . onPut ( markedAllNotificationsAsReadApiUrl ) . reply ( statusCode ) ;
147- await executeThunk ( markAllNotificationsAsRead ( 'discussions' ) , store . dispatch , store . getState ) ;
148-
149- const { notifications : { notificationStatus } } = store . getState ( ) ;
150-
151- expect ( notificationStatus ) . toEqual ( status ) ;
152- } ) ;
153-
154142 it ( 'Successfully marked notification as read in the redux.' , async ( ) => {
155143 axiosMock . onPut ( markedAllNotificationsAsReadApiUrl ) . reply ( 200 ) ;
156144 await executeThunk ( markNotificationsAsRead ( 1 ) , store . dispatch , store . getState ) ;
0 commit comments