Skip to content

Commit cba85de

Browse files
committed
test: fix ReminderManager tests
1 parent a16f2dd commit cba85de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/unit/reminders/ReminderManager.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ describe('ReminderManager', () => {
7070
const manager = new ReminderManager({ client, config });
7171
// @ts-expect-error accessing private property
7272
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+
});
7477
expect(manager.state.getLatestValue()).toEqual({ reminders: new Map() });
7578
});
7679
});
@@ -325,7 +328,7 @@ describe('ReminderManager', () => {
325328
?.state.getLatestValue() as ReminderState;
326329
expect({
327330
...state,
328-
timeLeftMs: Math.round(timeLeftMs ?? 0 / 1000),
331+
timeLeftMs: Math.round((timeLeftMs ?? 0) / 1000),
329332
}).toEqual({
330333
...reminderResponse,
331334
created_at: new Date(reminderResponse.created_at),

0 commit comments

Comments
 (0)