File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 ChevronRightIcon ,
55} from '@primer/octicons-react' ;
66
7+ import { mockGitHubCloudAccount } from '../__mocks__/account-mocks' ;
78import { mockGitifyNotification } from '../__mocks__/notifications-mocks' ;
8- import { mockToken } from '../__mocks__/state-mocks' ;
99
1010import type { GitifySubject , Hostname , Link , SubjectType } from '../types' ;
1111
@@ -127,8 +127,8 @@ describe('renderer/utils/helpers.ts', () => {
127127
128128 expect ( getHtmlUrlSpy ) . toHaveBeenCalledTimes ( 1 ) ;
129129 expect ( getHtmlUrlSpy ) . toHaveBeenCalledWith (
130+ mockGitHubCloudAccount ,
130131 mockLatestCommentUrl ,
131- mockToken ,
132132 ) ;
133133 expect ( result ) . toBe ( `${ mockHtmlUrl } ?${ mockNotificationReferrer } ` ) ;
134134 } ) ;
@@ -157,7 +157,10 @@ describe('renderer/utils/helpers.ts', () => {
157157 } ) ;
158158
159159 expect ( getHtmlUrlSpy ) . toHaveBeenCalledTimes ( 1 ) ;
160- expect ( getHtmlUrlSpy ) . toHaveBeenCalledWith ( mockSubjectUrl , mockToken ) ;
160+ expect ( getHtmlUrlSpy ) . toHaveBeenCalledWith (
161+ mockGitHubCloudAccount ,
162+ mockSubjectUrl ,
163+ ) ;
161164 expect ( result ) . toBe ( `${ mockHtmlUrl } ?${ mockNotificationReferrer } ` ) ;
162165 } ) ;
163166 } ) ;
You can’t perform that action at this time.
0 commit comments