diff --git a/src/app.test.tsx b/src/app.test.tsx index d846da33d..b1970bded 100644 --- a/src/app.test.tsx +++ b/src/app.test.tsx @@ -5,6 +5,7 @@ */ import React from 'react'; +import { JSNS } from '@zextras/carbonio-shell-ui'; import * as shellUi from '@zextras/carbonio-shell-ui'; import { HttpResponse } from 'msw'; import { act } from 'react-dom/test-utils'; @@ -13,6 +14,11 @@ import App from './app'; import * as addComponentsToShell from './app-utils/add-shell-components'; import * as registerShellActions from './app-utils/register-shell-actions'; import * as registerShellIntegrations from './app-utils/register-shell-integrations'; +import { + GetShareInfoRequest, + GetShareInfoResponse +} from './carbonio-ui-commons/soap/get-share-info'; +import { generateFolder } from './carbonio-ui-commons/test/mocks/folders/folders-generator'; import { createAPIInterceptor, createSoapAPIInterceptor @@ -58,7 +64,13 @@ describe('App', () => { beforeEach(() => { createAPIInterceptor('get', 'zx/login/v3/account', HttpResponse.json({})); - createSoapAPIInterceptor('GetFolder', HttpResponse.json({})); + createSoapAPIInterceptor('GetFolder', { + folder: [{}] + }); + createSoapAPIInterceptor('GetShareInfo', { + _jsns: JSNS.account, + share: [generateFolder()] + }); jest.clearAllMocks(); }); diff --git a/src/carbonio-ui-commons b/src/carbonio-ui-commons index b295f43d7..71940b764 160000 --- a/src/carbonio-ui-commons +++ b/src/carbonio-ui-commons @@ -1 +1 @@ -Subproject commit b295f43d7206cfae3e3a5a2b951a94c40ab51dcc +Subproject commit 71940b76478386a04c9c80af1adca14e4003bdfe