1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/update-button
Janne Savolainen 5f57213179
Fix stuff happening based on timers not being run correctly in unit tests (#5764)
* Introduce helper for advancing fake time

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Introduce reactive now to kludge around global shared state in library

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Replace all usages of "now" from mobx-utils with our own kludge to get rid of shared global state between unit tests

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Consolidate all usages of advanceTimersByTime to make sure things happening based on timers are run correctly

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix incorrect expect in test

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Enable skipped unit test since prerequisites are done

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-07-01 19:40:34 +03:00
..
index.ts TopBar Update button (#5376) 2022-05-18 19:36:40 +03:00
restart-and-install-update.injectable.ts Change update warning level over time (#5445) 2022-06-28 16:27:19 +03:00
styles.module.scss Change update warning level over time (#5445) 2022-06-28 16:27:19 +03:00
update-button.tsx Change update warning level over time (#5445) 2022-06-28 16:27:19 +03:00
update-warning-level.injectable.ts Fix stuff happening based on timers not being run correctly in unit tests (#5764) 2022-07-01 19:40:34 +03:00