Skip to content

Commit 07b721b

Browse files
committed
fix: test error
1 parent 88a51ba commit 07b721b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

apps/client/src/widgets/dialogs/add_link.spec_utils.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,21 @@ export function setupAddLinkDialogMocks(state: AddLinkDialogTestState) {
3737
}));
3838

3939
vi.doMock("../../services/ws", () => ({
40+
default: {
41+
subscribeToMessages: vi.fn(),
42+
logError: state.logErrorSpy
43+
},
4044
logError: state.logErrorSpy
4145
}));
4246

47+
vi.doMock("../../services/froca", () => ({
48+
default: {
49+
getNote: vi.fn(async () => ({
50+
getLabels: vi.fn(() => [])
51+
}))
52+
}
53+
}));
54+
4355
vi.doMock("../../services/note_autocomplete", () => ({
4456
__esModule: true,
4557
default: {

0 commit comments

Comments
 (0)