@@ -21,17 +21,17 @@ describe('renderer/utils/logger.ts', () => {
21
21
logInfo ( 'foo' , 'bar' ) ;
22
22
23
23
expect ( logInfoSpy ) . toHaveBeenCalledTimes ( 1 ) ;
24
- expect ( logInfoSpy ) . toHaveBeenCalledWith ( '[foo]: ' , 'bar' ) ;
24
+ expect ( logInfoSpy ) . toHaveBeenCalledWith ( '[foo]' , 'bar' ) ;
25
25
} ) ;
26
26
27
27
it ( 'log info with notification' , ( ) => {
28
28
logInfo ( 'foo' , 'bar' , mockSingleNotification ) ;
29
29
30
30
expect ( logInfoSpy ) . toHaveBeenCalledTimes ( 1 ) ;
31
31
expect ( logInfoSpy ) . toHaveBeenCalledWith (
32
- '[foo]: ' ,
32
+ '[foo]' ,
33
33
'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!] ' ,
35
35
) ;
36
36
} ) ;
37
37
} ) ;
@@ -41,17 +41,17 @@ describe('renderer/utils/logger.ts', () => {
41
41
logWarn ( 'foo' , 'bar' ) ;
42
42
43
43
expect ( logWarnSpy ) . toHaveBeenCalledTimes ( 1 ) ;
44
- expect ( logWarnSpy ) . toHaveBeenCalledWith ( '[foo]: ' , 'bar' ) ;
44
+ expect ( logWarnSpy ) . toHaveBeenCalledWith ( '[foo]' , 'bar' ) ;
45
45
} ) ;
46
46
47
47
it ( 'log warn with notification' , ( ) => {
48
48
logWarn ( 'foo' , 'bar' , mockSingleNotification ) ;
49
49
50
50
expect ( logWarnSpy ) . toHaveBeenCalledTimes ( 1 ) ;
51
51
expect ( logWarnSpy ) . toHaveBeenCalledWith (
52
- '[foo]: ' ,
52
+ '[foo]' ,
53
53
'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!] ' ,
55
55
) ;
56
56
} ) ;
57
57
} ) ;
@@ -61,17 +61,17 @@ describe('renderer/utils/logger.ts', () => {
61
61
logError ( 'foo' , 'bar' , mockError ) ;
62
62
63
63
expect ( logErrorSpy ) . toHaveBeenCalledTimes ( 1 ) ;
64
- expect ( logErrorSpy ) . toHaveBeenCalledWith ( '[foo]: ' , 'bar' , mockError ) ;
64
+ expect ( logErrorSpy ) . toHaveBeenCalledWith ( '[foo]' , 'bar' , mockError ) ;
65
65
} ) ;
66
66
67
67
it ( 'log error with notification' , ( ) => {
68
68
logError ( 'foo' , 'bar' , mockError , mockSingleNotification ) ;
69
69
70
70
expect ( logErrorSpy ) . toHaveBeenCalledTimes ( 1 ) ;
71
71
expect ( logErrorSpy ) . toHaveBeenCalledWith (
72
- '[foo]: ' ,
72
+ '[foo]' ,
73
73
'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!] ' ,
75
75
mockError ,
76
76
) ;
77
77
} ) ;
0 commit comments