mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 07:58:46 +01:00
Pressing Esc in left pane composer menu should go back
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user