🍄 Separate trash for the personal and shared drive (#189)
This commit is contained in:
@@ -59,11 +59,12 @@ describe("the Drive feature", () => {
|
||||
|
||||
const createItem = async (): Promise<DriveFileMockClass> => {
|
||||
await TestDbService.getInstance(platform, true);
|
||||
|
||||
const scope: "personal" | "shared" = "shared";
|
||||
const item = {
|
||||
name: "new test file",
|
||||
parent_id: "root",
|
||||
company_id: platform.workspace.company_id,
|
||||
scope,
|
||||
};
|
||||
|
||||
const version = {};
|
||||
@@ -141,8 +142,9 @@ describe("the Drive feature", () => {
|
||||
DriveItemDetailsMockClass,
|
||||
listTrashResponse.body,
|
||||
);
|
||||
|
||||
expect(listTrashResult.item.name).toEqual("Trash");
|
||||
expect(createItemResult).toBeDefined();
|
||||
expect(createItemResult.scope).toEqual("shared");
|
||||
expect(listTrashResult.children.some(({ id }) => id === createItemResult.id)).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user