Review updates

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
This commit is contained in:
Crevil
2022-10-01 09:02:37 +02:00
parent 4aa027712e
commit f81ce9d438
3 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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>