@@ -105,7 +105,7 @@ describe('context/App.tsx', () => {
105105
106106 expect ( markNotificationMock ) . toHaveBeenCalledTimes ( 1 ) ;
107107 expect ( markNotificationMock ) . toHaveBeenCalledWith (
108- { enterpriseAccounts : [ ] , token : null } ,
108+ { enterpriseAccounts : [ ] , token : null , user : null } ,
109109 '123-456' ,
110110 'github.com'
111111 ) ;
@@ -132,7 +132,7 @@ describe('context/App.tsx', () => {
132132
133133 expect ( unsubscribeNotificationMock ) . toHaveBeenCalledTimes ( 1 ) ;
134134 expect ( unsubscribeNotificationMock ) . toHaveBeenCalledWith (
135- { enterpriseAccounts : [ ] , token : null } ,
135+ { enterpriseAccounts : [ ] , token : null , user : null } ,
136136 '123-456' ,
137137 'github.com'
138138 ) ;
@@ -161,7 +161,7 @@ describe('context/App.tsx', () => {
161161
162162 expect ( markRepoNotificationsMock ) . toHaveBeenCalledTimes ( 1 ) ;
163163 expect ( markRepoNotificationsMock ) . toHaveBeenCalledWith (
164- { enterpriseAccounts : [ ] , token : null } ,
164+ { enterpriseAccounts : [ ] , token : null , user : null } ,
165165 'manosim/gitify' ,
166166 'github.com'
167167 ) ;
@@ -192,12 +192,17 @@ describe('context/App.tsx', () => {
192192 expect ( fetchNotificationsMock ) . toHaveBeenCalledTimes ( 2 )
193193 ) ;
194194
195- expect ( apiRequestAuthMock ) . toHaveBeenCalledTimes ( 1 ) ;
195+ expect ( apiRequestAuthMock ) . toHaveBeenCalledTimes ( 2 ) ;
196196 expect ( apiRequestAuthMock ) . toHaveBeenCalledWith (
197197 'https://api.github.com/notifications' ,
198198 'HEAD' ,
199199 '123-456'
200200 ) ;
201+ expect ( apiRequestAuthMock ) . toHaveBeenCalledWith (
202+ 'https://api.github.com/user' ,
203+ 'GET' ,
204+ '123-456'
205+ ) ;
201206 } ) ;
202207 } ) ;
203208
@@ -240,7 +245,7 @@ describe('context/App.tsx', () => {
240245
241246 expect ( saveStateMock ) . toHaveBeenCalled ( ) ;
242247 expect ( saveStateMock ) . toHaveBeenCalledWith (
243- { enterpriseAccounts : [ ] , token : null } ,
248+ { enterpriseAccounts : [ ] , token : null , user : null } ,
244249 {
245250 appearance : 'SYSTEM' ,
246251 markOnClick : false ,
@@ -276,7 +281,7 @@ describe('context/App.tsx', () => {
276281 expect ( setAutoLaunchMock ) . toHaveBeenCalledWith ( true ) ;
277282 expect ( saveStateMock ) . toHaveBeenCalled ( ) ;
278283 expect ( saveStateMock ) . toHaveBeenCalledWith (
279- { enterpriseAccounts : [ ] , token : null } ,
284+ { enterpriseAccounts : [ ] , token : null , user : null } ,
280285 {
281286 appearance : 'SYSTEM' ,
282287 markOnClick : false ,
0 commit comments