[fix](has filter info list): table filter data change #448
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action)
failed
Nov 23, 2023 in 0s
Test suite run failed
Failed tests: 1/943. Failed suites: 1/278.
Details
Created failed tests' annotations. To disable them, see documentation.
● useTable › only change pageSize or pageIndex when new page size or page index is diff between old data
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
"pageIndex": 11,
- "pageSize": 20,
+ "pageSize": 10,
}
115 | );
116 | });
> 117 | expect(result.current.pagination).toEqual({ pageIndex: 11, pageSize: 20 });
| ^
118 |
119 | act(() => {
120 | result.current.tableChange(
at Object.<anonymous> (src/hooks/useTable/index.test.ts:117:39)
Annotations
Check failure on line 81 in src/hooks/useTable/index.test.ts
github-actions / Tests annotations (🧪 jest-coverage-report-action)
useTable > only change pageSize or pageIndex when new page size or page index is diff between old data
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
"pageIndex": 11,
- "pageSize": 20,
+ "pageSize": 10,
}
at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/hooks/useTable/index.test.ts:117:39)
at Promise.then.completed (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:391:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:316:10)
at _callCircusTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:218:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:155:3)
at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:66:9)
at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:60:9)
at run (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:25:3)
at runAndTransformResultsToJestFormat (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21)
at jestAdapter (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
at runTestInternal (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:389:16)
at runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:475:34)
at Object.worker (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/testWorker.js:133:12)
Loading