feat: print performance logs to console.

This commit is contained in:
鲁树人
2023-05-21 17:58:54 +01:00
parent c4e3999546
commit 4cfc672646
12 changed files with 171 additions and 92 deletions

View File

@@ -24,6 +24,9 @@ test('should be able to forward request to worker client bus', async () => {
const queue = new DecryptionQueue(bus, 1);
await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file' })).resolves.toEqual({
actionName: DECRYPTION_WORKER_ACTION_NAME.DECRYPT,
payload: 'blob://mock-file',
payload: {
blobURI: 'blob://mock-file',
id: 'file://1',
},
});
});