From 267dc8e8db1d2d0ace129a0e2e1a0075aeaf73bf Mon Sep 17 00:00:00 2001 From: Aramis Date: Thu, 25 Jan 2024 18:36:01 -0500 Subject: [PATCH] add a negative check as well Signed-off-by: Aramis --- plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx b/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx index 42c56eb4c9..4ba5f51503 100644 --- a/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx +++ b/plugins/catalog-react/src/hooks/useEntityListProvider.test.tsx @@ -329,6 +329,7 @@ describe('', () => { ); await waitFor(() => { + expect(mockCatalogApi.getEntities).not.toHaveBeenCalledTimes(1); expect(result.current.entities.length).toBe(1); expect(mockCatalogApi.queryEntities).toHaveBeenCalledTimes(1); expect(mockCatalogApi.queryEntities).toHaveBeenCalledWith({