From c2fbe4b145bd45311c3a8ca01e8106a0734a883e Mon Sep 17 00:00:00 2001 From: Aramis Sennyey Date: Wed, 22 Feb 2023 17:13:58 -0500 Subject: [PATCH] Fix test cases. Signed-off-by: Aramis Sennyey --- .../components/ApiExplorerPage/DefaultApiExplorerPage.test.tsx | 1 + .../techdocs/src/home/components/DefaultTechDocsHome.test.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.test.tsx b/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.test.tsx index bc413661a8..f89897524d 100644 --- a/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.test.tsx +++ b/plugins/api-docs/src/components/ApiExplorerPage/DefaultApiExplorerPage.test.tsx @@ -64,6 +64,7 @@ describe('DefaultApiExplorerPage', () => { }), getLocationByRef: () => Promise.resolve({ id: 'id', type: 'url', target: 'url' }), + getEntitiesByRefs: () => Promise.resolve({ items: [] }), getEntityByRef: async entityRef => { return { apiVersion: 'backstage.io/v1alpha1', diff --git a/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx b/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx index 48c1fa248c..9ac2ac4ef4 100644 --- a/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx +++ b/plugins/techdocs/src/home/components/DefaultTechDocsHome.test.tsx @@ -38,6 +38,7 @@ import { DefaultTechDocsHome } from './DefaultTechDocsHome'; const mockCatalogApi = { getEntityByRef: () => Promise.resolve(), + getEntitiesByRefs: () => Promise.resolve({ items: [] }), getEntities: async () => ({ items: [ {