committed by
Fredrik Adelöw
parent
46c7bf0a44
commit
c2fbe4b145
@@ -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',
|
||||
|
||||
@@ -38,6 +38,7 @@ import { DefaultTechDocsHome } from './DefaultTechDocsHome';
|
||||
|
||||
const mockCatalogApi = {
|
||||
getEntityByRef: () => Promise.resolve(),
|
||||
getEntitiesByRefs: () => Promise.resolve({ items: [] }),
|
||||
getEntities: async () => ({
|
||||
items: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user