From 01868352cf99a4831ae1ffbef4128b705b8cd7da Mon Sep 17 00:00:00 2001 From: blam Date: Wed, 10 Jun 2020 02:16:36 +0200 Subject: [PATCH] chore(catalog/star): fixing issues with unmocked deps --- .../catalog/src/components/CatalogFilter/StarredCount.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/catalog/src/components/CatalogFilter/StarredCount.test.tsx b/plugins/catalog/src/components/CatalogFilter/StarredCount.test.tsx index 57581e98f2..546d00e854 100644 --- a/plugins/catalog/src/components/CatalogFilter/StarredCount.test.tsx +++ b/plugins/catalog/src/components/CatalogFilter/StarredCount.test.tsx @@ -24,6 +24,8 @@ describe('Starred Count', () => { it('should render the count returned from the hook', async () => { jest.spyOn(Hooks, 'useStarredEntities').mockReturnValue({ starredEntities: new Set(['id1', 'id2', 'id3', 'id4']), + isStarredEntity: () => false, + toggleStarredEntity: () => undefined, }); const { findByText } = render(wrapInTestApp());