mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
Show What's New dialog in app via Help -> Go to release notes
This commit is contained in:
@@ -24,4 +24,19 @@ describe('both/state/ducks/globalModals', () => {
|
||||
assert.isFalse(nextNextState.isProfileEditorVisible);
|
||||
});
|
||||
});
|
||||
|
||||
describe('showWhatsNewModal/hideWhatsNewModal', () => {
|
||||
const { showWhatsNewModal, hideWhatsNewModal } = actions;
|
||||
|
||||
it('toggles isWhatsNewVisible to true', () => {
|
||||
const state = getEmptyState();
|
||||
const nextState = reducer(state, showWhatsNewModal());
|
||||
|
||||
assert.isTrue(nextState.isWhatsNewVisible);
|
||||
|
||||
const nextNextState = reducer(nextState, hideWhatsNewModal());
|
||||
|
||||
assert.isFalse(nextNextState.isWhatsNewVisible);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user