about summary refs log tree commit diff
path: root/__tests__/state/models/me.test.ts
diff options
context:
space:
mode:
Diffstat (limited to '__tests__/state/models/me.test.ts')
-rw-r--r--__tests__/state/models/me.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/__tests__/state/models/me.test.ts b/__tests__/state/models/me.test.ts
index fa8d49601..b69e43477 100644
--- a/__tests__/state/models/me.test.ts
+++ b/__tests__/state/models/me.test.ts
@@ -160,7 +160,7 @@ describe('MeModel', () => {
 
   it('should update notifs count with fetchStateUpdate()', async () => {
     meModel.notifications = {
-      refresh: jest.fn(),
+      refresh: jest.fn().mockResolvedValue({}),
     } as unknown as NotificationsViewModel
 
     jest
@@ -173,7 +173,7 @@ describe('MeModel', () => {
         })
       })
 
-    await meModel.fetchStateUpdate()
+    await meModel.fetchNotifications()
     expect(meModel.notificationCount).toBe(1)
     expect(meModel.notifications.refresh).toHaveBeenCalled()
   })