mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 13:43:41 +00:00
update yarn.lock + some tests
This commit is contained in:
parent
1e66f567f8
commit
d6008baff7
@ -104,7 +104,7 @@ describe('Bulk actions for folders & files', () => {
|
||||
id: folder1a.id,
|
||||
name: 'folder-a-1a',
|
||||
path: expect.anything(),
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
createdAt: expect.anything(),
|
||||
updatedAt: expect.anything(),
|
||||
},
|
||||
@ -160,6 +160,8 @@ describe('Bulk actions for folders & files', () => {
|
||||
},
|
||||
});
|
||||
|
||||
console.log('res.body', res.body);
|
||||
|
||||
expect(res.body.data).toMatchObject({
|
||||
files: [
|
||||
{
|
||||
@ -188,7 +190,7 @@ describe('Bulk actions for folders & files', () => {
|
||||
id: folder1a.id,
|
||||
name: 'folder-b-1a',
|
||||
path: `${folder1b.path}/${folder1a.pathId}`,
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
createdAt: expect.anything(),
|
||||
updatedAt: expect.anything(),
|
||||
},
|
||||
@ -297,7 +299,7 @@ describe('Bulk actions for folders & files', () => {
|
||||
id: folder1a.id,
|
||||
name: 'folder-c-1a',
|
||||
path: `/${folder1a.pathId}`,
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
createdAt: expect.anything(),
|
||||
updatedAt: expect.anything(),
|
||||
},
|
||||
|
||||
@ -66,7 +66,7 @@ describe('Uploads folder (GraphQL)', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -111,7 +111,7 @@ describe('Uploads folder (GraphQL)', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -166,7 +166,7 @@ describe('Uploads folder (GraphQL)', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (1)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -206,7 +206,7 @@ describe('Uploads folder (GraphQL)', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (1)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -251,7 +251,7 @@ describe('Uploads folder (GraphQL)', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (1)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -306,7 +306,7 @@ describe('Uploads folder (GraphQL)', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (2)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
|
||||
@ -79,7 +79,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -114,7 +114,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -159,7 +159,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (1)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -190,7 +190,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (1)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -226,7 +226,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (1)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -272,7 +272,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (2)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -317,7 +317,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (2)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -356,7 +356,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (2)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
@ -404,7 +404,7 @@ describe('Uploads folder', () => {
|
||||
expect(file).toMatchObject({
|
||||
folder: {
|
||||
name: 'API Uploads (3)',
|
||||
pathId: expect.anything(),
|
||||
pathId: expect.any(Number),
|
||||
},
|
||||
folderPath: `/${file.folder.pathId}`,
|
||||
});
|
||||
|
||||
12
yarn.lock
12
yarn.lock
@ -18580,6 +18580,8 @@ path-case@^2.1.0:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/path-case/-/path-case-2.1.1.tgz#94b8037c372d3fe2906e465bb45e25d226e8eea5"
|
||||
integrity sha1-lLgDfDctP+KQbkZbtF4l0ibo7qU=
|
||||
dependencies:
|
||||
no-case "^2.2.0"
|
||||
|
||||
path-dirname@^1.0.0:
|
||||
version "1.0.2"
|
||||
@ -23395,16 +23397,16 @@ uuid@8.0.0:
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.0.0.tgz#bc6ccf91b5ff0ac07bbcdbf1c7c4e150db4dbb6c"
|
||||
integrity sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==
|
||||
|
||||
uuid@8.3.2, uuid@^8.0.0, uuid@^8.3.0, uuid@^8.3.2:
|
||||
version "8.3.2"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
|
||||
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
|
||||
|
||||
uuid@^3.3.2:
|
||||
version "3.4.0"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
|
||||
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
|
||||
|
||||
uuid@^8.0.0, uuid@^8.3.0, uuid@^8.3.2:
|
||||
version "8.3.2"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
|
||||
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
|
||||
|
||||
v8-compile-cache@^2.0.3, v8-compile-cache@^2.3.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user