Show What's New dialog in app via Help -> Go to release notes
This commit is contained in:
parent
3e38a4b761
commit
191bfee18c
14 changed files with 249 additions and 142 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue