This commit is contained in:
Rene Haas
2022-11-04 01:23:51 +01:00
parent 78e7a38662
commit e51d95396c
@@ -175,6 +175,8 @@ describe('environment', () => {
_addZoomListener(listener);
window.dispatchEvent(new Event('resize'));
jest.advanceTimersByTime(33);
expect(listener).toHaveBeenCalledTimes(1);
});
@@ -191,6 +193,8 @@ describe('environment', () => {
window.dispatchEvent(new Event('resize'));
jest.advanceTimersByTime(33);
expect(listener).toHaveBeenCalledTimes(1);
});
@@ -214,7 +218,7 @@ describe('environment', () => {
expect(listener).not.toHaveBeenCalled();
jest.runAllTimers();
jest.advanceTimersByTime(33);
expect(listener).toHaveBeenCalledTimes(1);
});