@@ -161,7 +161,7 @@ export type EntityFilter = {
|
||||
export class EntityKindFilter implements EntityFilter {
|
||||
constructor(value: string);
|
||||
// (undocumented)
|
||||
getCatalogFilters(): Record<string, string>;
|
||||
getCatalogFilters(): Record<string, string | string[]>;
|
||||
// (undocumented)
|
||||
toQueryValue(): string;
|
||||
// (undocumented)
|
||||
|
||||
@@ -30,7 +30,7 @@ import { getEntityRelations } from './utils';
|
||||
export class EntityKindFilter implements EntityFilter {
|
||||
constructor(readonly value: string) {}
|
||||
|
||||
getCatalogFilters(): Record<string, string> {
|
||||
getCatalogFilters(): Record<string, string | string[]> {
|
||||
return { kind: this.value };
|
||||
}
|
||||
|
||||
|
||||
@@ -92,12 +92,7 @@ const wrapper = ({
|
||||
[identityApiRef, mockIdentityApi],
|
||||
[storageApiRef, MockStorageApi.create()],
|
||||
[starredEntitiesApiRef, new MockStarredEntitiesApi()],
|
||||
[
|
||||
alertApiRef,
|
||||
{
|
||||
post: jest.fn(),
|
||||
},
|
||||
],
|
||||
[alertApiRef, { post: jest.fn() }],
|
||||
]}
|
||||
>
|
||||
<EntityListProvider>
|
||||
|
||||
Reference in New Issue
Block a user