mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Unseal envelope in a separate step for better logs
This commit is contained in:
committed by
Scott Nonnenberg
parent
907e1d32ec
commit
21ffb7c054
@@ -44,4 +44,12 @@ describe('createTaskWithTimeout', () => {
|
||||
});
|
||||
await assert.isRejected(taskWithTimeout(), 'Task is throwing!');
|
||||
});
|
||||
|
||||
it('passes arguments to the underlying function', async () => {
|
||||
const task = (arg: string) => Promise.resolve(arg);
|
||||
const taskWithTimeout = createTaskWithTimeout(task, 'test');
|
||||
|
||||
const result = await taskWithTimeout('hi!');
|
||||
assert.strictEqual(result, 'hi!');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user