Skip to content

Commit 6060067

Browse files
committed
test: add resolved promise is session and userinfo mocked methods
1 parent abb6379 commit 6060067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/src/hooks/__tests__/useInstrumentVisualization.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ vi.mock('@/hooks/useInstrumentRecords', () => ({
7373
}));
7474

7575
vi.mock('@/hooks/useFindSession', () => ({
76-
sessionInfo: () => mockSession
76+
sessionInfo: () => Promise.resolve(mockSession)
7777
}));
7878

7979
vi.mock('@/hooks/useFindUser', () => ({
80-
userInfo: () => mockUser
80+
userInfo: () => Promise.resolve(mockUser)
8181
}));
8282

8383
describe('useInstrumentVisualization', () => {

0 commit comments

Comments
 (0)