SafetyNumberChangeDialog: Introduce awareness of stories
This commit is contained in:
parent
709588a874
commit
5100d17ed2
36 changed files with 2531 additions and 522 deletions
|
@ -6,7 +6,6 @@ import * as sinon from 'sinon';
|
|||
|
||||
import {
|
||||
_analyzeSenderKeyDevices,
|
||||
_waitForAll,
|
||||
_shouldFailSend,
|
||||
} from '../../util/sendToGroup';
|
||||
import { UUID } from '../../types/UUID';
|
||||
|
@ -166,21 +165,6 @@ describe('sendToGroup', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('#_waitForAll', () => {
|
||||
it('returns result of provided tasks', async () => {
|
||||
const task1 = () => Promise.resolve(1);
|
||||
const task2 = () => Promise.resolve(2);
|
||||
const task3 = () => Promise.resolve(3);
|
||||
|
||||
const result = await _waitForAll({
|
||||
tasks: [task1, task2, task3],
|
||||
maxConcurrency: 1,
|
||||
});
|
||||
|
||||
assert.deepEqual(result, [1, 2, 3]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#_shouldFailSend', () => {
|
||||
it('returns false for a generic error', async () => {
|
||||
const error = new Error('generic');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue