mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
Fix failing close event handling tests by restoring the getBounds mock return value in beforeEach after vi.clearAllMocks(). The issue occurred because clearAllMocks() removed the getBounds mock behavior set during hoisting, causing x and y coordinates to be undefined instead of 0.