UIBULKED-497: fix lint and logic #3212
GitHub Actions / Jest Unit Test Results
failed
Oct 26, 2024 in 0s
1 fail, 285 pass in 3m 4s
Annotations
github-actions / Jest Unit Test Results
useBulkOperationDetails should initialize with the correct refetch interval and query key (useBulkOperationDetails should initialize with the correct refetch interval and query key) failed
artifacts/jest-junit/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: ObjectContaining {"enabled": true, "queryKey": ["BULK_OPERATION_DETAILS_KEY", "namespace-key", "test-id", 5000], "refetchInterval": 5000}
Received: {"enabled": true, "queryFn": [Function fetchBulkOperationDetails], "queryKey": ["BULK_OPERATION_DETAILS_KEY", "namespace-key", 0, "test-id"]}
Number of calls: 1
at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/api/useBulkOperationDetails.test.js:57:22)
at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Loading