diff --git a/plugins/catalog-react/api-report.md b/plugins/catalog-react/api-report.md index 8f95f5cb13..3b870137f5 100644 --- a/plugins/catalog-react/api-report.md +++ b/plugins/catalog-react/api-report.md @@ -161,7 +161,7 @@ export type EntityFilter = { export class EntityKindFilter implements EntityFilter { constructor(value: string); // (undocumented) - getCatalogFilters(): Record; + getCatalogFilters(): Record; // (undocumented) toQueryValue(): string; // (undocumented) diff --git a/plugins/catalog-react/src/filters.ts b/plugins/catalog-react/src/filters.ts index 02ce1f775b..056b3b92c1 100644 --- a/plugins/catalog-react/src/filters.ts +++ b/plugins/catalog-react/src/filters.ts @@ -30,7 +30,7 @@ import { getEntityRelations } from './utils'; export class EntityKindFilter implements EntityFilter { constructor(readonly value: string) {} - getCatalogFilters(): Record { + getCatalogFilters(): Record { return { kind: this.value }; } diff --git a/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx b/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx index d59682f114..d8c89e0858 100644 --- a/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx +++ b/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx @@ -92,12 +92,7 @@ const wrapper = ({ [identityApiRef, mockIdentityApi], [storageApiRef, MockStorageApi.create()], [starredEntitiesApiRef, new MockStarredEntitiesApi()], - [ - alertApiRef, - { - post: jest.fn(), - }, - ], + [alertApiRef, { post: jest.fn() }], ]} >