ISSUE-825 Improve refresh without WS (#826)
This commit is contained in:
@@ -60,6 +60,7 @@ describe('websocket messages storm', () => {
|
||||
;(getDisplayedCalendarRange as jest.Mock).mockReturnValue(mockRange)
|
||||
;(store.getState as jest.Mock).mockReturnValue(mockState)
|
||||
window.WS_DEBOUNCE_PERIOD_MS = 500
|
||||
window.WS_SKIP_DELAY_MS = 0
|
||||
mockAccumulators.calendarsToRefresh = new Map<string, any>()
|
||||
mockAccumulators.calendarsToHide = new Set()
|
||||
mockAccumulators.shouldRefreshCalendarListRef.current = false
|
||||
|
||||
@@ -53,6 +53,7 @@ describe('updateCalendars', () => {
|
||||
mockAccumulators.currentDebouncePeriod = 0
|
||||
mockAccumulators.shouldRefreshCalendarListRef.current = false
|
||||
mockAccumulators.debouncedUpdateFn = jest.fn()
|
||||
window.WS_SKIP_DELAY_MS = 0
|
||||
})
|
||||
|
||||
it('should not dispatch for non-object messages', () => {
|
||||
|
||||
Reference in New Issue
Block a user