Skip to content

Commit

Permalink
test: 单测修复
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed May 19, 2023
1 parent cd3c496 commit a9332b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/s2-core/__tests__/bugs/issue-1624-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ describe('Data Cell Border Tests', () => {

await sleep(40);

// @ts-ignore
const meta = dataCell.getCellArea();
const borderBbox = dataCell.getChildByIndex(2).getBBox();
// @ts-ignore
const borderBbox = dataCell.stateShapes
.get('interactiveBorderShape')
.getBBox();

expect(meta.x).toEqual(borderBbox.x - borderWidth / 2);
expect(meta.y).toEqual(borderBbox.y - borderWidth / 2);
Expand Down

0 comments on commit a9332b4

Please sign in to comment.