catalog: mock entity facets endpoint

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-06-12 12:56:45 +02:00
parent 842c2bedfe
commit a31373e111
@@ -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',