mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 06:35:47 +00:00
CM: Update useFetchContentTypeLayout tests
This commit is contained in:
parent
825e3a2220
commit
06e58a6a21
@ -557,7 +557,7 @@ describe('Content Manager | hooks | useFetchContentTypeLayout | utils ', () => {
|
||||
it('should return an object with the correct keys', () => {
|
||||
expect(generateRelationQueryInfos(addressSchema, 'categories', simpleModels)).toEqual({
|
||||
endpoints: {
|
||||
search: '/content-manager/relations/api::address.address/categories',
|
||||
search: '/content-manager/api::address.address/categories',
|
||||
},
|
||||
defaultParams: {},
|
||||
shouldDisplayRelationLink: true,
|
||||
@ -576,7 +576,7 @@ describe('Content Manager | hooks | useFetchContentTypeLayout | utils ', () => {
|
||||
)
|
||||
).toEqual({
|
||||
endpoints: {
|
||||
search: '/content-manager/relations/api::address.address/categories',
|
||||
search: '/content-manager/api::address.address/categories',
|
||||
},
|
||||
defaultParams: {
|
||||
_component: 'api::address.address',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user