CM: Update useFetchContentTypeLayout tests

This commit is contained in:
Gustav Hansen 2022-08-29 14:02:59 +02:00
parent 825e3a2220
commit 06e58a6a21

View File

@ -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',