mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
chore: rename tests
This commit is contained in:
parent
c4b966a03d
commit
a1a2453c15
@ -239,13 +239,13 @@ describe('Bulk actions for folders & files', () => {
|
||||
// Delete folder1
|
||||
await rq.post('/upload/actions/bulk-delete', { body: { folderIds: [folder1.id] } });
|
||||
|
||||
const afterFolderIds = await rq
|
||||
const folderIds = await rq
|
||||
.get('/upload/folders')
|
||||
.then((res) => res.body.data.map((f) => f.id));
|
||||
|
||||
// Should include all folders except the one we deleted
|
||||
expect(afterFolderIds.length).toBe(20);
|
||||
expect(afterFolderIds).toEqual(expect.not.arrayContaining([folder1.id]));
|
||||
expect(folderIds.length).toBe(20);
|
||||
expect(folderIds).toEqual(expect.not.arrayContaining([folder1.id]));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user