Skip to content

Commit 12a54aa

Browse files
committed
Fix test
1 parent 963fbb9 commit 12a54aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/components/Charts/utils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ describe('labelOverhang', () => {
103103
expect(result.right).toBe(50);
104104
});
105105

106-
it('returns symmetric overhang at 45°', () => {
106+
it('returns asymmetric overhang at 45°', () => {
107107
const result = labelOverhang(100, LINE_HEIGHT, LABEL_ROTATIONS.DIAGONAL);
108-
expect(result.left).toBeCloseTo(result.right);
108+
expect(result.left).toBeGreaterThan(result.right);
109109
});
110110

111111
it('returns lineHeight/2 on both sides at 90°', () => {

0 commit comments

Comments
 (0)