Skip to content

Commit

Permalink
fix: 修复带动画的状态样式变化
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Sep 28, 2021
1 parent 2619645 commit db9ce59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bugs/2905-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('#2905: 没有自定义主题,自定义 shape 中 draw 方法获取
simulateMouseEvent(el, 'mouseenter', getClientPoint(canvas, (box.minX + box.maxX) / 2, (box.minY + box.maxY) / 2));
expect(element0.hasState('active')).toBe(true);

await delay(10);
await delay(2000);
expect(element0.shape.get('children')[0].attr('stroke')).toBe('green');
});
});

0 comments on commit db9ce59

Please sign in to comment.