chore(catalog/star): fixing issues with unmocked deps

This commit is contained in:
blam
2020-06-10 02:16:36 +02:00
parent 74b087daf8
commit 01868352cf
@@ -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(<StarredCount />));