mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 20:22:53 +00:00
Fix stale kiosk mode test assertion
setKioskMode(false) stores 'false' explicitly rather than removing the key, to distinguish disabled from unset. The test expectation was outdated.
This commit is contained in:
@@ -82,7 +82,7 @@ describe('url utils', () => {
|
||||
expect(listener).toHaveBeenCalledWith(true);
|
||||
|
||||
setKioskMode(false);
|
||||
expect(window.sessionStorage.removeItem).toHaveBeenCalledWith('pulse_kiosk_mode');
|
||||
expect(window.sessionStorage.setItem).toHaveBeenCalledWith('pulse_kiosk_mode', 'false');
|
||||
expect(listener).toHaveBeenCalledWith(false);
|
||||
|
||||
unsubscribe();
|
||||
|
||||
Reference in New Issue
Block a user