From a31373e11148c37915166fee4295bd3ba09ef3b6 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Mon, 12 Jun 2023 12:56:45 +0200 Subject: [PATCH] catalog: mock entity facets endpoint Signed-off-by: Vincenzo Scamporlino --- .../src/components/CatalogPage/DefaultCatalogPage.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.test.tsx b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.test.tsx index 3411656426..eb79cd048c 100644 --- a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.test.tsx +++ b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.test.tsx @@ -105,6 +105,7 @@ describe('DefaultCatalogPage', () => { }), getLocationByRef: () => Promise.resolve({ id: 'id', type: 'url', target: 'url' }), + getEntityFacets: async () => ({ facets: { 'relations.ownedBy': [] } }), getEntityByRef: async entityRef => { return { apiVersion: 'backstage.io/v1alpha1',