diff --git a/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx b/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx index 9ac2ac4ef4..1f073e184d 100644 --- a/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx +++ b/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx @@ -36,8 +36,8 @@ import React from 'react'; import { rootDocsRouteRef } from '../../routes'; import { DefaultTechDocsHome } from './DefaultTechDocsHome'; -const mockCatalogApi = { - getEntityByRef: () => Promise.resolve(), +const mockCatalogApi: Partial = { + getEntityFacets: async () => ({ facets: { 'relations.ownedBy': [] } }), getEntitiesByRefs: () => Promise.resolve({ items: [] }), getEntities: async () => ({ items: [ @@ -51,7 +51,7 @@ const mockCatalogApi = { }, ], }), -} as Partial; +}; describe('TechDocs Home', () => { const configApi: ConfigApi = new ConfigReader({