🤝 Shared with me (#71)

* 🚧 #46 Shared with me
  - added converter of DriveFile to dto with user information
  - updated version of jest to the latest for better compatibility with typescript and mocking class instances
  - added run configuration for unit tests

Co-authored-by: Romaric Mourgues <rmourgues@linagora.com>
This commit is contained in:
Anton Shepilov
2023-06-09 14:37:15 +02:00
committed by GitHub
parent f1bf507865
commit dfd25a234a
32 changed files with 3215 additions and 4560 deletions
@@ -51,15 +51,12 @@ describe("the Drive Tdrive tabs feature", () => {
});
});
afterEach(async () => {
await platform.tearDown();
});
afterAll(async () => {
await platform.app.close();
await platform?.tearDown();
platform = null;
});
it("did create a tab configuration on Drive side", async done => {
it("did create a tab configuration on Drive side", async () => {
await TestDbService.getInstance(platform, true);
const item = {
@@ -125,11 +122,9 @@ describe("the Drive Tdrive tabs feature", () => {
a => a?.type === "channel" && a.id === "abcdefghij" && a.level === "write",
),
).toBeDefined();
done?.();
});
it("did refuse to create a tab configuration for an item I can't manage", async done => {
it("did refuse to create a tab configuration for an item I can't manage", async () => {
const dbService = await TestDbService.getInstance(platform, true);
const ws0pk = {
id: platform.workspace.workspace_id,
@@ -177,7 +172,5 @@ describe("the Drive Tdrive tabs feature", () => {
});
expect(createdTab.statusCode).toBe(403);
done?.();
});
});