File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,10 @@ describe('ReminderManager', () => {
70
70
const manager = new ReminderManager ( { client, config } ) ;
71
71
// @ts -expect-error accessing private property
72
72
expect ( manager . client ) . toBe ( client ) ;
73
- expect ( manager . configState . getLatestValue ( ) ) . toEqual ( config ) ;
73
+ expect ( manager . configState . getLatestValue ( ) ) . toEqual ( {
74
+ ...DEFAULT_REMINDER_MANAGER_CONFIG ,
75
+ ...config ,
76
+ } ) ;
74
77
expect ( manager . state . getLatestValue ( ) ) . toEqual ( { reminders : new Map ( ) } ) ;
75
78
} ) ;
76
79
} ) ;
@@ -325,7 +328,7 @@ describe('ReminderManager', () => {
325
328
?. state . getLatestValue ( ) as ReminderState ;
326
329
expect ( {
327
330
...state ,
328
- timeLeftMs : Math . round ( timeLeftMs ?? 0 / 1000 ) ,
331
+ timeLeftMs : Math . round ( ( timeLeftMs ?? 0 ) / 1000 ) ,
329
332
} ) . toEqual ( {
330
333
...reminderResponse ,
331
334
created_at : new Date ( reminderResponse . created_at ) ,
You can’t perform that action at this time.
0 commit comments