Pressing Esc in left pane composer menu should go back

This commit is contained in:
Evan Hahn 2021-04-02 16:43:39 -05:00 committed by Josh Perez
parent 2d35fa8f57
commit f05d45ac9b
12 changed files with 168 additions and 5 deletions

View file

@ -45,6 +45,18 @@ describe('LeftPaneChooseGroupMembersHelper', () => {
sinonSandbox.restore();
});
describe('getBackAction', () => {
it('returns the "show composer" action', () => {
const startComposing = sinon.fake();
const helper = new LeftPaneChooseGroupMembersHelper(defaults);
assert.strictEqual(
helper.getBackAction({ startComposing }),
startComposing
);
});
});
describe('getRowCount', () => {
it('returns 0 if there are no contacts', () => {
assert.strictEqual(