diff --git a/packages/@react-facet/core/src/components/Map.spec.tsx b/packages/@react-facet/core/src/components/Map.spec.tsx index bc2b471..8dda369 100644 --- a/packages/@react-facet/core/src/components/Map.spec.tsx +++ b/packages/@react-facet/core/src/components/Map.spec.tsx @@ -103,9 +103,9 @@ it('updates only items that have changed', () => { const mock = jest.fn() - const ExampleContent = ({ item, count }: { item: Facet; count: number }) => { + const ExampleContent = ({ item }: { item: Facet }) => { useFacetEffect(mock, [], [item]) - return
{count}
+ return null } const inputEqualityCheck = () => { @@ -125,11 +125,15 @@ it('updates only items that have changed', () => { const Example = () => { return ( - {(item, count) => } + {(item) => } ) } + const scenario = + + render(scenario) + expect(mock).toHaveBeenCalledTimes(5) mock.mockClear()