Skip to content

Commit

Permalink
test: 单测数据恢复
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed Nov 28, 2023
1 parent 34d1fc2 commit 1a0acae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/s2-core/__tests__/bugs/issue-860-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Empty String Row Value Tests', () => {

test('should get correct row hierarchy with empty row node', () => {
const layoutResult = s2.facet.layoutResult;
expect(layoutResult.rowNodes).toHaveLength(7);
expect(layoutResult.rowLeafNodes).toHaveLength(4);
expect(layoutResult.rowNodes).toHaveLength(8);
expect(layoutResult.rowLeafNodes).toHaveLength(5);
});
});
6 changes: 6 additions & 0 deletions packages/s2-core/__tests__/data/data-issue-860.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"type": "",
"b_sum": 6
},
{
"date": "2021-12-01",
"city": "A市",
"type": null,
"b_sum": 6
},
{
"date": "2021-12-01",
"city": "B市",
Expand Down

0 comments on commit 1a0acae

Please sign in to comment.