@@ -82,7 +82,7 @@ describe('components/NotificationRow.tsx', () => {
8282
8383 describe ( 'notification interactions' , ( ) => {
8484 it ( 'should open a notification in the browser - click' , ( ) => {
85- const removeNotificationFromState = jest . fn ( ) ;
85+ const markNotificationRead = jest . fn ( ) ;
8686
8787 const props = {
8888 notification : mockSingleNotification ,
@@ -93,7 +93,7 @@ describe('components/NotificationRow.tsx', () => {
9393 < AppContext . Provider
9494 value = { {
9595 settings : { ...mockSettings , markAsDoneOnOpen : false } ,
96- removeNotificationFromState ,
96+ markNotificationRead ,
9797 auth : mockAuth ,
9898 } }
9999 >
@@ -103,11 +103,11 @@ describe('components/NotificationRow.tsx', () => {
103103
104104 fireEvent . click ( screen . getByRole ( 'main' ) ) ;
105105 expect ( links . openNotification ) . toHaveBeenCalledTimes ( 1 ) ;
106- expect ( removeNotificationFromState ) . toHaveBeenCalledTimes ( 1 ) ;
106+ expect ( markNotificationRead ) . toHaveBeenCalledTimes ( 1 ) ;
107107 } ) ;
108108
109109 it ( 'should open a notification in the browser - delay notification setting enabled' , ( ) => {
110- const removeNotificationFromState = jest . fn ( ) ;
110+ const markNotificationRead = jest . fn ( ) ;
111111
112112 const props = {
113113 notification : mockSingleNotification ,
@@ -122,7 +122,7 @@ describe('components/NotificationRow.tsx', () => {
122122 markAsDoneOnOpen : false ,
123123 delayNotificationState : true ,
124124 } ,
125- removeNotificationFromState ,
125+ markNotificationRead ,
126126 auth : mockAuth ,
127127 } }
128128 >
@@ -132,11 +132,11 @@ describe('components/NotificationRow.tsx', () => {
132132
133133 fireEvent . click ( screen . getByRole ( 'main' ) ) ;
134134 expect ( links . openNotification ) . toHaveBeenCalledTimes ( 1 ) ;
135- expect ( removeNotificationFromState ) . toHaveBeenCalledTimes ( 1 ) ;
135+ expect ( markNotificationRead ) . toHaveBeenCalledTimes ( 1 ) ;
136136 } ) ;
137137
138138 it ( 'should open a notification in the browser - key down' , ( ) => {
139- const removeNotificationFromState = jest . fn ( ) ;
139+ const markNotificationRead = jest . fn ( ) ;
140140
141141 const props = {
142142 notification : mockSingleNotification ,
@@ -147,7 +147,7 @@ describe('components/NotificationRow.tsx', () => {
147147 < AppContext . Provider
148148 value = { {
149149 settings : { ...mockSettings , markAsDoneOnOpen : false } ,
150- removeNotificationFromState ,
150+ markNotificationRead ,
151151 auth : mockAuth ,
152152 } }
153153 >
@@ -157,7 +157,7 @@ describe('components/NotificationRow.tsx', () => {
157157
158158 fireEvent . click ( screen . getByRole ( 'main' ) ) ;
159159 expect ( links . openNotification ) . toHaveBeenCalledTimes ( 1 ) ;
160- expect ( removeNotificationFromState ) . toHaveBeenCalledTimes ( 1 ) ;
160+ expect ( markNotificationRead ) . toHaveBeenCalledTimes ( 1 ) ;
161161 } ) ;
162162
163163 it ( 'should open a notification in browser & mark it as done' , ( ) => {
0 commit comments