@@ -25,7 +25,7 @@ describe('renderer/routes/LoginWithDeviceFlow.tsx', () => {
2525 } ) ;
2626
2727 it ( 'should render and initialize device flow' , async ( ) => {
28- const startGitHubDeviceFlowMock = jest . fn ( ) . mockResolvedValueOnce ( {
28+ const loginWithDeviceFlowStartMock = jest . fn ( ) . mockResolvedValueOnce ( {
2929 hostname : 'github.com' ,
3030 clientId : 'test-id' ,
3131 deviceCode : 'device-code' ,
@@ -36,10 +36,10 @@ describe('renderer/routes/LoginWithDeviceFlow.tsx', () => {
3636 } ) ;
3737
3838 renderWithAppContext ( < LoginWithDeviceFlowRoute /> , {
39- startGitHubDeviceFlow : startGitHubDeviceFlowMock ,
39+ loginWithDeviceFlowStart : loginWithDeviceFlowStartMock ,
4040 } ) ;
4141
42- expect ( startGitHubDeviceFlowMock ) . toHaveBeenCalled ( ) ;
42+ expect ( loginWithDeviceFlowStartMock ) . toHaveBeenCalled ( ) ;
4343
4444 await screen . findByText ( / U S E R - 1 2 3 4 / ) ;
4545 expect ( screen . getByText ( / g i t h u b .c o m \/ l o g i n \/ d e v i c e / ) ) . toBeInTheDocument ( ) ;
@@ -52,7 +52,7 @@ describe('renderer/routes/LoginWithDeviceFlow.tsx', () => {
5252 } ) ;
5353
5454 it ( 'should copy user code to clipboard when clicking copy button' , async ( ) => {
55- const startGitHubDeviceFlowMock = jest . fn ( ) . mockResolvedValueOnce ( {
55+ const loginWithDeviceFlowStartMock = jest . fn ( ) . mockResolvedValueOnce ( {
5656 hostname : 'github.com' ,
5757 clientId : 'test-id' ,
5858 deviceCode : 'device-code' ,
@@ -63,7 +63,7 @@ describe('renderer/routes/LoginWithDeviceFlow.tsx', () => {
6363 } ) ;
6464
6565 renderWithAppContext ( < LoginWithDeviceFlowRoute /> , {
66- startGitHubDeviceFlow : startGitHubDeviceFlowMock ,
66+ loginWithDeviceFlowStart : loginWithDeviceFlowStartMock ,
6767 } ) ;
6868
6969 await screen . findByText ( / U S E R - 1 2 3 4 / ) ;
@@ -77,19 +77,19 @@ describe('renderer/routes/LoginWithDeviceFlow.tsx', () => {
7777 } ) ;
7878
7979 it ( 'should handle device flow errors during initialization' , async ( ) => {
80- const startGitHubDeviceFlowMock = jest
80+ const loginWithDeviceFlowStartMock = jest
8181 . fn ( )
8282 . mockRejectedValueOnce ( new Error ( 'Network error' ) ) ;
8383
8484 renderWithAppContext ( < LoginWithDeviceFlowRoute /> , {
85- startGitHubDeviceFlow : startGitHubDeviceFlowMock ,
85+ loginWithDeviceFlowStart : loginWithDeviceFlowStartMock ,
8686 } ) ;
8787
8888 await screen . findByText ( / F a i l e d t o s t a r t a u t h e n t i c a t i o n / ) ;
8989 } ) ;
9090
9191 it ( 'should navigate back on cancel' , async ( ) => {
92- const startGitHubDeviceFlowMock = jest . fn ( ) . mockResolvedValueOnce ( {
92+ const loginWithDeviceFlowStartMock = jest . fn ( ) . mockResolvedValueOnce ( {
9393 hostname : 'github.com' ,
9494 clientId : 'test-id' ,
9595 deviceCode : 'device-code' ,
@@ -100,7 +100,7 @@ describe('renderer/routes/LoginWithDeviceFlow.tsx', () => {
100100 } ) ;
101101
102102 renderWithAppContext ( < LoginWithDeviceFlowRoute /> , {
103- startGitHubDeviceFlow : startGitHubDeviceFlowMock ,
103+ loginWithDeviceFlowStart : loginWithDeviceFlowStartMock ,
104104 } ) ;
105105
106106 await screen . findByText ( / U S E R - 1 2 3 4 / ) ;
0 commit comments