@@ -21,17 +21,17 @@ describe('renderer/utils/logger.ts', () => {
2121 logInfo ( 'foo' , 'bar' ) ;
2222
2323 expect ( logInfoSpy ) . toHaveBeenCalledTimes ( 1 ) ;
24- expect ( logInfoSpy ) . toHaveBeenCalledWith ( '[foo]: ' , 'bar' ) ;
24+ expect ( logInfoSpy ) . toHaveBeenCalledWith ( '[foo]' , 'bar' ) ;
2525 } ) ;
2626
2727 it ( 'log info with notification' , ( ) => {
2828 logInfo ( 'foo' , 'bar' , mockSingleNotification ) ;
2929
3030 expect ( logInfoSpy ) . toHaveBeenCalledTimes ( 1 ) ;
3131 expect ( logInfoSpy ) . toHaveBeenCalledWith (
32- '[foo]: ' ,
32+ '[foo]' ,
3333 'bar' ,
34- '[Issue]: I am a robot and this is a test! for repository gitify-app/notifications-test ' ,
34+ '[Issue >> gitify-app/notifications-test >> I am a robot and this is a test!] ' ,
3535 ) ;
3636 } ) ;
3737 } ) ;
@@ -41,17 +41,17 @@ describe('renderer/utils/logger.ts', () => {
4141 logWarn ( 'foo' , 'bar' ) ;
4242
4343 expect ( logWarnSpy ) . toHaveBeenCalledTimes ( 1 ) ;
44- expect ( logWarnSpy ) . toHaveBeenCalledWith ( '[foo]: ' , 'bar' ) ;
44+ expect ( logWarnSpy ) . toHaveBeenCalledWith ( '[foo]' , 'bar' ) ;
4545 } ) ;
4646
4747 it ( 'log warn with notification' , ( ) => {
4848 logWarn ( 'foo' , 'bar' , mockSingleNotification ) ;
4949
5050 expect ( logWarnSpy ) . toHaveBeenCalledTimes ( 1 ) ;
5151 expect ( logWarnSpy ) . toHaveBeenCalledWith (
52- '[foo]: ' ,
52+ '[foo]' ,
5353 'bar' ,
54- '[Issue]: I am a robot and this is a test! for repository gitify-app/notifications-test ' ,
54+ '[Issue >> gitify-app/notifications-test >> I am a robot and this is a test!] ' ,
5555 ) ;
5656 } ) ;
5757 } ) ;
@@ -61,17 +61,17 @@ describe('renderer/utils/logger.ts', () => {
6161 logError ( 'foo' , 'bar' , mockError ) ;
6262
6363 expect ( logErrorSpy ) . toHaveBeenCalledTimes ( 1 ) ;
64- expect ( logErrorSpy ) . toHaveBeenCalledWith ( '[foo]: ' , 'bar' , mockError ) ;
64+ expect ( logErrorSpy ) . toHaveBeenCalledWith ( '[foo]' , 'bar' , mockError ) ;
6565 } ) ;
6666
6767 it ( 'log error with notification' , ( ) => {
6868 logError ( 'foo' , 'bar' , mockError , mockSingleNotification ) ;
6969
7070 expect ( logErrorSpy ) . toHaveBeenCalledTimes ( 1 ) ;
7171 expect ( logErrorSpy ) . toHaveBeenCalledWith (
72- '[foo]: ' ,
72+ '[foo]' ,
7373 'bar' ,
74- '[Issue]: I am a robot and this is a test! for repository gitify-app/notifications-test ' ,
74+ '[Issue >> gitify-app/notifications-test >> I am a robot and this is a test!] ' ,
7575 mockError ,
7676 ) ;
7777 } ) ;
0 commit comments