mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 17:53:53 +00:00
fix tests
This commit is contained in:
parent
c4ce0b56dc
commit
c62081284d
@ -349,7 +349,8 @@ describe('Folder', () => {
|
|||||||
test('cannot rename a folder if duplicated', async () => {
|
test('cannot rename a folder if duplicated', async () => {
|
||||||
const folder0 = await createFolder('folder-a-0', null);
|
const folder0 = await createFolder('folder-a-0', null);
|
||||||
const folder1 = await createFolder('folder-a-1', null);
|
const folder1 = await createFolder('folder-a-1', null);
|
||||||
await createFolder('folder-a-00', folder0.id);
|
const folder00 = await createFolder('folder-a-00', folder0.id);
|
||||||
|
data.folders.push(folder0, folder1, folder00);
|
||||||
|
|
||||||
const res = await rq({
|
const res = await rq({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
@ -366,6 +367,7 @@ describe('Folder', () => {
|
|||||||
|
|
||||||
test('cannot move a folder to a folder that does not exist', async () => {
|
test('cannot move a folder to a folder that does not exist', async () => {
|
||||||
const folder = await createFolder('folder-b-0', null);
|
const folder = await createFolder('folder-b-0', null);
|
||||||
|
data.folders.push(folder);
|
||||||
|
|
||||||
const res = await rq({
|
const res = await rq({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user